mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Update key-bindings.bash
Faster startup. Use internal bash globbing instead of external grep binary (adapter from Gentoo's `/etc/bash/bashrc` TERM checking). Insignificant on Linux, but on Cygwin this cuts startup time by 40 ms on my Core i7 laptop.
This commit is contained in:
@@ -65,7 +65,7 @@ if [ -n "$TMUX_PANE" ]; then
|
||||
[ $BASH_VERSINFO -gt 3 ] && __use_tmux_auto=1
|
||||
fi
|
||||
|
||||
if [ -z "$(set -o | \grep '^vi.*on')" ]; then
|
||||
if [[ $'\n'$(set -o) != *$'\n'vi*on* ]]; then
|
||||
# Required to refresh the prompt after fzf
|
||||
bind '"\er": redraw-current-line'
|
||||
bind '"\e^": history-expand-line'
|
||||
|
||||
Reference in New Issue
Block a user