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
55682e36
Unverified
Commit
55682e36
authored
Nov 08, 2021
by
Shahin Sorkh
Committed by
GitHub
Nov 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tmux): set session name with `ZSH_TMUX_DEFAULT_SESSION_NAME` (#9063)
parent
90903779
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
README.md
plugins/tmux/README.md
+1
-0
tmux.plugin.zsh
plugins/tmux/tmux.plugin.zsh
+5
-1
No files found.
plugins/tmux/README.md
View file @
55682e36
...
@@ -39,3 +39,4 @@ The plugin also supports the following:
...
@@ -39,3 +39,4 @@ The plugin also supports the following:
|
`ZSH_TMUX_FIXTERM_WITH_256COLOR`
|
`$TERM`
to use for 256-color terminals (default:
`screen-256color`
|
|
`ZSH_TMUX_FIXTERM_WITH_256COLOR`
|
`$TERM`
to use for 256-color terminals (default:
`screen-256color`
|
|
`ZSH_TMUX_CONFIG`
| Set the configuration path (default:
`$HOME/.tmux.conf`
) |
|
`ZSH_TMUX_CONFIG`
| Set the configuration path (default:
`$HOME/.tmux.conf`
) |
|
`ZSH_TMUX_UNICODE`
| Set
`tmux -u`
option to support unicode |
|
`ZSH_TMUX_UNICODE`
| Set
`tmux -u`
option to support unicode |
|
`ZSH_TMUX_DEFAULT_SESSION_NAME`
| Set tmux default session name when autostart is enabled |
plugins/tmux/tmux.plugin.zsh
View file @
55682e36
...
@@ -76,8 +76,12 @@ function _zsh_tmux_plugin_run() {
...
@@ -76,8 +76,12 @@ function _zsh_tmux_plugin_run() {
elif
[[
-e
"
$ZSH_TMUX_CONFIG
"
]]
;
then
elif
[[
-e
"
$ZSH_TMUX_CONFIG
"
]]
;
then
tmux_cmd+
=(
-f
"
$ZSH_TMUX_CONFIG
"
)
tmux_cmd+
=(
-f
"
$ZSH_TMUX_CONFIG
"
)
fi
fi
if
[[
-n
"
$ZSH_TMUX_DEFAULT_SESSION_NAME
"
]]
;
then
$tmux_cmd
new-session
-s
$ZSH_TMUX_DEFAULT_SESSION_NAME
else
$tmux_cmd
new-session
$tmux_cmd
new-session
fi
fi
fi
if
[[
"
$ZSH_TMUX_AUTOQUIT
"
==
"true"
]]
;
then
if
[[
"
$ZSH_TMUX_AUTOQUIT
"
==
"true"
]]
;
then
exit
exit
...
...
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