diff options
author | Robin Roth <robin-roth@online.de> | 2015-05-09 21:11:01 +0200 |
---|---|---|
committer | Robin Roth <robin-roth@online.de> | 2015-05-09 21:11:01 +0200 |
commit | 01405ad92ead8550d35073ff967cffc592a72665 (patch) | |
tree | bd54a6a59bfce2b556ebf4bd6db5fe2aa32f38ab /shell | |
parent | 683abb86efe910d656fc95005e74a3888b49541b (diff) |
fix typo in argument of head
at least my version of head wants -n1 to only display the first line
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 17608670..86630d00 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -37,7 +37,7 @@ bindkey '\ec' fzf-cd-widget fzf-history-widget() { local selected restore_no_bang_hist if selected=$(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r -q "$LBUFFER"); then - num=$(echo "$selected" | head -1 | awk '{print $1}' | sed 's/[^0-9]//g') + num=$(echo "$selected" | head -n1 | awk '{print $1}' | sed 's/[^0-9]//g') if [ -n "$num" ]; then LBUFFER=!$num if setopt | grep nobanghist > /dev/null; then |