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