refactor(cable): use tail instead of tac for zsh and bash command history channels (#161)

This commit is contained in:
Alex Pasmantier 2024-12-28 23:38:14 +01:00 committed by GitHub
parent f83c5d1396
commit 157d01c4e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,8 +35,8 @@ preview_command = ":files:"
# Shell history
[[cable_channel]]
name = "zsh-history"
source_command = "tac $HOME/.zsh_history | cut -d\";\" -f 2-"
source_command = "tail -r $HOME/.zsh_history | cut -d\";\" -f 2-"
[[cable_channel]]
name = "bash-history"
source_command = "tac $HOME/.bash_history"
source_command = "tail -r $HOME/.bash_history"