diff --git a/shell/functions b/shell/functions index f18c50c..1a38e41 100644 --- a/shell/functions +++ b/shell/functions @@ -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 diff --git a/shell/keybinds b/shell/keybinds index 81d420d..d46d5f8 100644 --- a/shell/keybinds +++ b/shell/keybinds @@ -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"'