mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-26 06:46:35 +00: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:
parent
e867355b2a
commit
63dbf48546
@ -65,7 +65,7 @@ if [ -n "$TMUX_PANE" ]; then
|
|||||||
[ $BASH_VERSINFO -gt 3 ] && __use_tmux_auto=1
|
[ $BASH_VERSINFO -gt 3 ] && __use_tmux_auto=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$(set -o | \grep '^vi.*on')" ]; then
|
if [[ $'\n'$(set -o) != *$'\n'vi*on* ]]; then
|
||||||
# Required to refresh the prompt after fzf
|
# Required to refresh the prompt after fzf
|
||||||
bind '"\er": redraw-current-line'
|
bind '"\er": redraw-current-line'
|
||||||
bind '"\e^": history-expand-line'
|
bind '"\e^": history-expand-line'
|
||||||
|
Loading…
Reference in New Issue
Block a user