feat(Bash): only activate fzf keybindings when logging in interactively.

This commit is contained in:
2026-06-05 10:07:00 +08:00
parent 768c1de824
commit db99887fb5
+2
View File
@@ -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