fix fzhist plugin - get fish_history from the right place

This commit is contained in:
joelazar 2021-08-25 10:36:10 +02:00
parent 55fc0c500b
commit dba6eeb431
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if [ "$shellname" = "bash" ]; then
hist_file="$HOME/.bash_history"
entry="$("$fuzzy" < "$hist_file")"
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")"
fi