Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
24d83d1e
Commit
24d83d1e
authored
Nov 14, 2019
by
Yuan-Hao Chen
Committed by
Marc Cornellà
Nov 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmux: fix bad tmux config syntax and logical expression error in
86b39cfa
(#8374)
parent
8b6b2ea0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
tmux.extra.conf
plugins/tmux/tmux.extra.conf
+1
-1
tmux.plugin.zsh
plugins/tmux/tmux.plugin.zsh
+6
-3
No files found.
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