diff options
| author | Gene Pavlovsky <gene.pavlovsky@gmail.com> | 2016-04-23 03:44:41 +0300 |
|---|---|---|
| committer | Gene Pavlovsky <gene.pavlovsky@gmail.com> | 2016-04-23 03:44:41 +0300 |
| commit | 63dbf4854632b52d21757f9a7675726bdd840c16 (patch) | |
| tree | 24a5d1d0a660b42642b3a76697ee7959a579e42d /shell/key-bindings.bash | |
| parent | e867355b2a578438d08b74a1708d6ad582316a48 (diff) | |
| download | fzf-63dbf4854632b52d21757f9a7675726bdd840c16.tar.gz | |
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.
Diffstat (limited to 'shell/key-bindings.bash')
| -rw-r--r-- | shell/key-bindings.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 47adf30f..8ecd6148 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -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' |
