mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
fix empty history in gnome terminal
This commit is contained in:
parent
2a650d5de1
commit
f23cbd9f73
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue