diff options
author | Yuji Nakao <ynakao@users.noreply.github.com> | 2020-09-02 17:27:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 17:27:56 +0900 |
commit | d7851356062d23250ad0fbee660a249c37460b40 (patch) | |
tree | c47a25c889ed53ff4fc32d37a80910bd84b152c0 /shell | |
parent | ae15eda5467543bdab178d5bcf56eb301a870ec7 (diff) |
[zsh] Fix the regular expression (#2140)
Fix the regular expression to capture the command containing asterisk.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/key-bindings.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 74ce9b71..559690a7 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -100,7 +100,7 @@ bindkey '\ec' fzf-cd-widget fzf-history-widget() { local selected num setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases 2> /dev/null - selected=( $(fc -rl 1 | perl -ne 'print if !$seen{(/^\s*[0-9]+\s+(.*)/, $1)}++' | + selected=( $(fc -rl 1 | perl -ne 'print if !$seen{(/^\s*[0-9]+\**\s+(.*)/, $1)}++' | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) ) local ret=$? if [ -n "$selected" ]; then |