mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 19:45:23 +00:00
fix(unix): use sed instead of tail for bash and zsh default history channels
This commit is contained in:
parent
124c06c403
commit
00791716bb
@ -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'"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user