aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-11 12:09:32 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-11 12:09:32 +0100
commit9ce59b1edd0c220607b4449bcac7b13363bc2e11 (patch)
treefeacfd4f63f0ed0792f3ff854d53761332a5c563
parent91254440a13261e993a21cd1b08a8db9e52490bd (diff)
Enable fzf in the bash shell again
Some useful stuff in here.
-rw-r--r--bashrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index e70c824..64226f9 100644
--- a/bashrc
+++ b/bashrc
@@ -27,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'
@@ -52,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)"