Invoke tmux only after checking its existence
This commit is contained in:
parent
b6cab458ed
commit
5ee57f18df
|
@ -3,10 +3,10 @@
|
|||
|
||||
hook global KakBegin .* %{
|
||||
%sh{
|
||||
VERSION_TMUX=$(tmux -V)
|
||||
VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\).*')
|
||||
|
||||
if [ -n "$TMUX" ]; then
|
||||
VERSION_TMUX=$(tmux -V)
|
||||
VERSION_TMUX=$(expr "${VERSION_TMUX}" : 'tmux \([0-9]*\).*')
|
||||
|
||||
if [ "${VERSION_TMUX}" -gt 1 ]; then
|
||||
echo "
|
||||
alias global repl tmux-repl-horizontal
|
||||
|
|
Loading…
Reference in New Issue
Block a user