rework exist if there is no history

This commit is contained in:
Josh Skidmore
2020-08-19 06:48:11 -04:00
parent 1eb912521a
commit 0564606b88

View File

@@ -1,9 +1,5 @@
fzf_history_seach() {
local _history=$(history -i 0)
[[ -z "$_history" ]] && exit
echo -e "$_history"| fzf +s +m -x --tac -e | awk '{print substr($0, index($0, $4))}' | tr -d "\n"
history -i 0 | grep -v 1969 | fzf +s +m -x --tac -e | awk '{print substr($0, index($0, $4))}' | tr -d "\n"
}
autoload fzf_history_seach