feat(Bash): only activate fzf keybindings when logging in interactively.
This commit is contained in:
@@ -51,6 +51,8 @@ __pj_fzf_history_widget() {
|
||||
}
|
||||
|
||||
# Alt-f: file selector, Alt-d: directory selector, Alt-h: history selector
|
||||
if [[ $- == *i* ]]; then
|
||||
bind -x '"\ef":__pj_fzf_file_widget'
|
||||
bind -x '"\ed":__pj_fzf_dir_widget'
|
||||
bind -x '"\eh":__pj_fzf_history_widget'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user