fix(unix): use sed instead of tail for bash and zsh default history channels

This commit is contained in:
alexpasmantier 2025-01-05 00:24:27 +01:00
parent 124c06c403
commit 00791716bb

View File

@ -35,13 +35,12 @@ preview_command = ":files:"
# Shell history
[[cable_channel]]
name = "zsh-history"
source_command = "tail -r $HISTFILE | cut -d\";\" -f 2-"
source_command = "sed '1!G;h;$!d' $HISTFILE | cut -d\";\" -f 2-"
[[cable_channel]]
name = "bash-history"
source_command = "tail -r $HISTFILE"
source_command = "sed '1!G;h;$!d' $HISTFILE"
[[cable_channel]]
name = "fish-history"
source_command = "fish -c 'history'"