Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
24d83d1e
Commit
24d83d1e
authored
Nov 14, 2019
by
Yuan-Hao Chen
Committed by
Marc Cornellà
Nov 14, 2019
Browse files
tmux: fix bad tmux config syntax and logical expression error in
86b39cfa
(#8374)
parent
8b6b2ea0
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/tmux/tmux.extra.conf
View file @
24d83d1e
set
-
g
default
-
terminal
$
ZSH_TMUX_TERM
set
-
g
default
-
terminal
$
ZSH_TMUX_TERM
source
$
ZSH_TMUX_CONFIG
source
-
file
$
ZSH_TMUX_CONFIG
\ No newline at end of file
\ No newline at end of file
plugins/tmux/tmux.plugin.zsh
View file @
24d83d1e
...
@@ -67,9 +67,12 @@ function _zsh_tmux_plugin_run() {
...
@@ -67,9 +67,12 @@ function _zsh_tmux_plugin_run() {
# If failed, just run tmux, fixing the TERM variable if requested.
# If failed, just run tmux, fixing the TERM variable if requested.
if
[[
$?
-ne
0
]]
;
then
if
[[
$?
-ne
0
]]
;
then
[[
"
$ZSH_TMUX_FIXTERM
"
==
"true"
]]
&&
tmux_cmd+
=(
-f
"
$_ZSH_TMUX_FIXED_CONFIG
"
)
||
\
if
[[
"
$ZSH_TMUX_FIXTERM
"
==
"true"
]]
;
then
[[
-e
"
$ZSH_TMUX_CONFIG
"
]]
&&
tmux_cmd+
=(
-f
"
$ZSH_TMUX_CONFIG
"
)
tmux_cmd+
=(
-f
"
$_ZSH_TMUX_FIXED_CONFIG
"
)
$tmux_cmd
new-session
elif
[[
-e
"
$ZSH_TMUX_CONFIG
"
]]
;
then
tmux_cmd+
=(
-f
"
$ZSH_TMUX_CONFIG
"
)
fi
$tmux_cmd
new-session
fi
fi
if
[[
"
$ZSH_TMUX_AUTOQUIT
"
==
"true"
]]
;
then
if
[[
"
$ZSH_TMUX_AUTOQUIT
"
==
"true"
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment