fix empty history in gnome terminal
This commit is contained in:
parent
2a650d5de1
commit
f23cbd9f73
@ -1,7 +1,7 @@
|
||||
if which percol &> /dev/null; then
|
||||
function percol_select_history() {
|
||||
local tac
|
||||
tac="tail -r"
|
||||
which gtac &> /dev/null && tac="gtac" || { which tac &> /dev/null && tac="tac" || { tac="tail -r" } }
|
||||
BUFFER=$(fc -l -n 1 | eval $tac | percol --query "$LBUFFER")
|
||||
CURSOR=$#BUFFER
|
||||
zle -R -c
|
||||
|
Loading…
Reference in New Issue
Block a user