Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
2b1303a7
Unverified
Commit
2b1303a7
authored
Sep 03, 2023
by
n0tr00t
Committed by
GitHub
Sep 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tmux): allow all standard config files (#11103)
Closes #11803 Co-authored-by:
n0tr00t
<
106423923+n0tr00teuorg@users.noreply.github.com
>
parent
1f56f2bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
README.md
plugins/tmux/README.md
+13
-13
tmux.plugin.zsh
plugins/tmux/tmux.plugin.zsh
+7
-2
No files found.
plugins/tmux/README.md
View file @
2b1303a7
...
@@ -28,16 +28,16 @@ The plugin also supports the following:
...
@@ -28,16 +28,16 @@ The plugin also supports the following:
## Configuration Variables
## Configuration Variables
| Variable | Description |
| Variable | Description
|
| ----------------------------------- | ----------------------------------------------------------------------------- |
| ----------------------------------- | -----------------------------------------------------------------------------
--------------
|
|
`ZSH_TMUX_AUTOSTART`
| Automatically starts tmux (default:
`false`
) |
|
`ZSH_TMUX_AUTOSTART`
| Automatically starts tmux (default:
`false`
)
|
|
`ZSH_TMUX_AUTOSTART_ONCE`
| Autostart only if tmux hasn't been started previously (default:
`true`
) |
|
`ZSH_TMUX_AUTOSTART_ONCE`
| Autostart only if tmux hasn't been started previously (default:
`true`
)
|
|
`ZSH_TMUX_AUTOCONNECT`
| Automatically connect to a previous session if it exits (default:
`true`
) |
|
`ZSH_TMUX_AUTOCONNECT`
| Automatically connect to a previous session if it exits (default:
`true`
)
|
|
`ZSH_TMUX_AUTOQUIT`
| Automatically closes terminal once tmux exits (default:
`ZSH_TMUX_AUTOSTART`
) |
|
`ZSH_TMUX_AUTOQUIT`
| Automatically closes terminal once tmux exits (default:
`ZSH_TMUX_AUTOSTART`
)
|
|
`ZSH_TMUX_FIXTERM`
| Sets
`$TERM`
to 256-color term or not based on current terminal support |
|
`ZSH_TMUX_FIXTERM`
| Sets
`$TERM`
to 256-color term or not based on current terminal support
|
|
`ZSH_TMUX_ITERM2`
| Sets the
`-CC`
option for iTerm2 tmux integration (default:
`false`
) |
|
`ZSH_TMUX_ITERM2`
| Sets the
`-CC`
option for iTerm2 tmux integration (default:
`false`
)
|
|
`ZSH_TMUX_FIXTERM_WITHOUT_256COLOR`
|
`$TERM`
to use for non 256-color terminals (default:
`screen`
) |
|
`ZSH_TMUX_FIXTERM_WITHOUT_256COLOR`
|
`$TERM`
to use for non 256-color terminals (default:
`screen`
)
|
|
`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`
,
`$XDG_CONFIG_HOME/tmux/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 |
|
`ZSH_TMUX_DEFAULT_SESSION_NAME`
| Set tmux default session name when autostart is enabled
|
plugins/tmux/tmux.plugin.zsh
View file @
2b1303a7
...
@@ -26,12 +26,17 @@ fi
...
@@ -26,12 +26,17 @@ fi
# systems without the proper terminfo
# systems without the proper terminfo
:
${
ZSH_TMUX_FIXTERM_WITH_256COLOR
:
=screen-256color
}
:
${
ZSH_TMUX_FIXTERM_WITH_256COLOR
:
=screen-256color
}
# Set the configuration path
# Set the configuration path
:
${
ZSH_TMUX_CONFIG
:
=
$HOME
/.tmux.conf
}
if
[[
-e
$HOME
/.tmux.conf
]]
;
then
:
${
ZSH_TMUX_CONFIG
:
=
$HOME
/.tmux.conf
}
elif
[[
-e
${
XDG_CONFIG_HOME
:-
$HOME
/.config
}
/tmux/tmux.conf
]]
;
then
:
${
ZSH_TMUX_CONFIG
:
=
${
XDG_CONFIG_HOME
:-
$HOME
/.config
}
/tmux/tmux.conf
}
else
:
${
ZSH_TMUX_CONFIG
:
=
$HOME
/.tmux.conf
}
fi
# Set -u option to support unicode
# Set -u option to support unicode
:
${
ZSH_TMUX_UNICODE
:
=false
}
:
${
ZSH_TMUX_UNICODE
:
=false
}
# ALIASES
# ALIASES
alias
ta
=
'tmux attach -t'
alias
ta
=
'tmux attach -t'
alias
tad
=
'tmux attach -d -t'
alias
tad
=
'tmux attach -d -t'
alias
ts
=
'tmux new-session -s'
alias
ts
=
'tmux new-session -s'
...
...
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