mirror of
https://github.com/jarun/nnn.git
synced 2024-11-18 08:59:14 +00:00
Merge pull request #1143 from joelazar/master
fix fzhist plugin - get fish_history from the right place
This commit is contained in:
commit
ad968b88da
|
@ -20,7 +20,7 @@ if [ "$shellname" = "bash" ]; then
|
||||||
hist_file="$HOME/.bash_history"
|
hist_file="$HOME/.bash_history"
|
||||||
entry="$("$fuzzy" < "$hist_file")"
|
entry="$("$fuzzy" < "$hist_file")"
|
||||||
elif [ "$shellname" = "fish" ]; then
|
elif [ "$shellname" = "fish" ]; then
|
||||||
hist_file="$HOME/.config/fish/fish_history"
|
hist_file="$HOME/.local/share/fish/fish_history"
|
||||||
entry="$(grep "\- cmd: " "$hist_file" | cut -c 8- | "$fuzzy")"
|
entry="$(grep "\- cmd: " "$hist_file" | cut -c 8- | "$fuzzy")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue