aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 621fd21..64226f9 100644
--- a/bashrc
+++ b/bashrc
@@ -4,6 +4,11 @@ complete -cf sudo man which
# reduce history size
export HISTCONTROL=ignoreboth
+# completions
+if [ -f /usr/share/bash-completion/completions/pass ]; then
+ . /usr/share/bash-completion/completions/pass
+fi
+
# export PS1='bash-\v-\u@\h \W\$ '
export PS1='\[\033[38;5;208m\]\u@\h:\w\$\[\033[0m\] '
@@ -22,6 +27,8 @@ export PATH=~/bin/:$PATH
source $HOME/dotfiles/openai_key
# aliases
+alias pacget="pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S"
+alias pacdel="pacman -Qq | fzf --multi --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -Rns"
alias gloga='git log --oneline --decorate --graph --all'
alias batnote='batnote-source-code'
alias am='append_to_masterlist'
@@ -47,11 +54,15 @@ export TERM="screen-256color"
export LESS="-iMRS -x2"
export NOTES_DIR="~/Documents/Notes"
export RANGER_LOAD_DEFAULT_RC="FALSE"
-export FZF_DEFAULT_COMMAND="ag --nocolor -g "
+export FZF_DEFAULT_COMMAND="rg --files --hidden --glob '!.git' "
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="--color info:108,prompt:109,spinner:108,pointer:168,marker:168"
+# fzf
+source /usr/share/fzf/key-bindings.bash
+source /usr/share/fzf/completion.bash
+
# gpg
export=GPG_TTY="$(tty)"
export=SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"