diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-16 07:10:50 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-16 07:10:50 +0100 |
commit | e1cde966d0e08df12b7b56a472562cd1af68278c (patch) | |
tree | eb2d5c1ce222a946967abac9446a8dc943e27662 /bashrc | |
parent | 4f5c12b4dc4220c7220ea210f6a38f9dcafca0fd (diff) | |
parent | b100e1840f1da442f67548238d9fdf8477837bf5 (diff) |
Merge branch 'master' of github.com:yulqen/arch-dotfiles
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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)" |