consistency
This commit is contained in:
parent
3273a20337
commit
dfae0bb587
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"'
|
||||
|
|
Loading…
Reference in a new issue