consistency

This commit is contained in:
tavo-wasd 2023-10-15 09:31:35 -06:00
parent 3273a20337
commit dfae0bb587
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
# Navigate using fzf
fzf_nav() {
[ -d "$1" ] && cd "$1"
opt=$(fzf --cycle --reverse --preview 'p {}' --height=50% --border top)
opt=$(fzf --layout=reverse-list --cycle --preview 'p {}' --height=50% --border top --prompt='⯈ ')
[ -n "$opt" ] && o "$opt"
}
@ -25,8 +25,7 @@ fi
# Copy output of a command
copy_history() {
history |
tac |
fzf --cycle --height=50% --border top |
fzf --cycle --height=50% --border top --tac --prompt='⯈ ' |
sed 's/^\s*[0-9]*\s*//g' |
tr -d '\n' |
xsel -ib

View file

@ -2,5 +2,6 @@
bind '"\C-e":"dragon -x \* 2>/dev/null\C-m"'
bind '"\C-y":"copy_history\C-m"'
bind '"\C-h":"copy_history\C-m"'
bind '"\C-f":"fzf_nav\C-m"'
bind '"\C-n":"fzf_nav\C-m"'