From 157d01c4e71faaaa106f922e9a3b59139d632003 Mon Sep 17 00:00:00 2001 From: Alex Pasmantier <47638216+alexpasmantier@users.noreply.github.com> Date: Sat, 28 Dec 2024 23:38:14 +0100 Subject: [PATCH] refactor(cable): use tail instead of tac for zsh and bash command history channels (#161) --- 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 cc6b27d..fc3db41 100644 --- a/cable/unix-channels.toml +++ b/cable/unix-channels.toml @@ -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"