mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 19:45:23 +00:00
refactor(shell): use $HISTFILE for cable history channels (#210)
Fixes #209
This commit is contained in:
parent
9079ed794c
commit
971a2e7697
@ -35,11 +35,11 @@ preview_command = ":files:"
|
||||
# Shell history
|
||||
[[cable_channel]]
|
||||
name = "zsh-history"
|
||||
source_command = "tail -r $HOME/.zsh_history | cut -d\";\" -f 2-"
|
||||
source_command = "tail -r $HISTFILE | cut -d\";\" -f 2-"
|
||||
|
||||
[[cable_channel]]
|
||||
name = "bash-history"
|
||||
source_command = "tail -r $HOME/.bash_history"
|
||||
source_command = "tail -r $HISTFILE"
|
||||
|
||||
[[cable_channel]]
|
||||
name = "fish-history"
|
||||
|
@ -19,3 +19,18 @@ preview_command = "git show -p --stat --pretty=fuller --color=always {0}"
|
||||
name = "docker-images"
|
||||
source_command = "docker image list --format \"{{.ID}}\""
|
||||
preview_command = "docker image inspect {0} | jq -C"
|
||||
|
||||
# Shell history
|
||||
[[cable_channel]]
|
||||
name = "zsh-history"
|
||||
source_command = "tail -r $HISTFILE | cut -d\";\" -f 2-"
|
||||
|
||||
[[cable_channel]]
|
||||
name = "bash-history"
|
||||
source_command = "tail -r $HISTFILE"
|
||||
|
||||
[[cable_channel]]
|
||||
name = "fish-history"
|
||||
source_command = "fish -c 'history'"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user