refactor(cable): use HISTFILE for bash and zsh history channels (#357)

fyi @andelink
This commit is contained in:
Alexandre Pasmantier 2025-02-08 15:31:49 +01:00 committed by GitHub
parent df2592f2c8
commit 7f87b2fb31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,11 +40,11 @@ preview_command = ":files:"
# Shell history
[[cable_channel]]
name = "zsh-history"
source_command = "sed '1!G;h;$!d' $HOME/.zsh_history | cut -d\";\" -f 2-"
source_command = "sed '1!G;h;$!d' ${HISTFILE:-${HOME}/.zsh_history} | cut -d\";\" -f 2-"
[[cable_channel]]
name = "bash-history"
source_command = "sed '1!G;h;$!d' $HOME/.bash_history"
source_command = "sed '1!G;h;$!d' ${HISTFILE:-${HOME}/.bash_history}"
[[cable_channel]]
name = "fish-history"