diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-28 22:15:21 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-28 22:15:21 +0100 |
commit | 1fc2fa680dfa98e0346a1d7742ac0244a47daad4 (patch) | |
tree | 809d082bb8b785c6d1ccfc16fff4cae9f68bb670 /config/essentials/zsh | |
parent | 3f61a68a91d3d5058b7f26d7ea3666a507834652 (diff) | |
parent | 2150bcc82747601f7717e752672483967659a40b (diff) |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r-- | config/essentials/zsh/aliases.sh | 2 | ||||
-rw-r--r-- | config/essentials/zsh/functions.zsh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 3d23cf4..9c8f7f6 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -279,7 +279,7 @@ alias scr='edit_in_dir ~/proj/personal/scripts/' alias fil='edit_in_dir ~/docs/filios/' alias fzps='ps aux | tail +2 | fzf | tee /dev/stderr | awk '\''{print $2}'\'' | clipp' alias asf='alias | fzf' -alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" +alias fzh="fzf --tac < $HISTFILE | tee /dev/stderr | clipp" alias ffwin='hyprctl clients -j | jq '\''.[].pid'\'' | fzf --preview "hyprctl clients -j | jq '\''.[] | select(.pid == {}) | {class, title, workspace, xwayland}'\''"' alias pff='find ${PASSWORD_STORE_DIR:=~/src/password-store/} -name "*.gpg" | sed -e "s@$PASSWORD_STORE_DIR/@@" -e '\''s/\.gpg$//'\'' | fzf | xargs pass show -c' alias fzps='fzf --print0 | xargs -0I{}' diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 8bf6c43..98cca08 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -14,7 +14,7 @@ nvf() { if test ! -f "$match" then logn "resetting cache..." - match="$(goo | tee "$cache" | grep -m 1 "$1$" 2> /dev/null)" + match="$(goo f "$HOME" | tee "$cache" | grep -m 1 "$1$" 2> /dev/null)" # # Alternative: # match="$(goo | grep -m 1 "$1" 2> /dev/null | tee -a | "$cache")" fi |