rework exist if there is no history
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user