From 7f87b2fb31db239b4e534e29989b4286f6a7d052 Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier <47638216+alexpasmantier@users.noreply.github.com> Date: Sat, 8 Feb 2025 15:31:49 +0100 Subject: [PATCH] refactor(cable): use HISTFILE for bash and zsh history channels (#357) fyi @andelink --- cable/unix-channels.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cable/unix-channels.toml b/cable/unix-channels.toml index b8064ef..099fedb 100644 --- a/cable/unix-channels.toml +++ b/cable/unix-channels.toml @@ -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"