mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
fix(tmux): use $ZSH_TMUX_CONFIG
setting in tmuxconf alias
This commit is contained in:
parent
303ae79712
commit
ad8220bc6d
2 changed files with 20 additions and 20 deletions
|
@ -16,7 +16,7 @@ The plugin also supports the following:
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
| ---------- | ---------------------- | -------------------------------------------------------- |
|
| ---------- | -------------------------- | -------------------------------------------------------- |
|
||||||
| `ta` | tmux attach -t | Attach new tmux session to already running named session |
|
| `ta` | tmux attach -t | Attach new tmux session to already running named session |
|
||||||
| `tad` | tmux attach -d -t | Detach named tmux session |
|
| `tad` | tmux attach -d -t | Detach named tmux session |
|
||||||
| `ts` | tmux new-session -s | Create a new named tmux session |
|
| `ts` | tmux new-session -s | Create a new named tmux session |
|
||||||
|
@ -24,7 +24,7 @@ The plugin also supports the following:
|
||||||
| `tksv` | tmux kill-server | Terminate all running tmux sessions |
|
| `tksv` | tmux kill-server | Terminate all running tmux sessions |
|
||||||
| `tkss` | tmux kill-session -t | Terminate named running tmux session |
|
| `tkss` | tmux kill-session -t | Terminate named running tmux session |
|
||||||
| `tmux` | `_zsh_tmux_plugin_run` | Start a new tmux session |
|
| `tmux` | `_zsh_tmux_plugin_run` | Start a new tmux session |
|
||||||
| `tmuxconf` | `$EDITOR ~/.tmux.conf` | Open .tmux.conf file with an editor |
|
| `tmuxconf` | `$EDITOR $ZSH_TMUX_CONFIG` | Open .tmux.conf file with an editor |
|
||||||
|
|
||||||
## Configuration Variables
|
## Configuration Variables
|
||||||
|
|
||||||
|
|
|
@ -3,16 +3,6 @@ if ! (( $+commands[tmux] )); then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ALIASES
|
|
||||||
|
|
||||||
alias ta='tmux attach -t'
|
|
||||||
alias tad='tmux attach -d -t'
|
|
||||||
alias ts='tmux new-session -s'
|
|
||||||
alias tl='tmux list-sessions'
|
|
||||||
alias tksv='tmux kill-server'
|
|
||||||
alias tkss='tmux kill-session -t'
|
|
||||||
alias tmuxconf='$EDITOR ~/.tmux.conf'
|
|
||||||
|
|
||||||
# CONFIGURATION VARIABLES
|
# CONFIGURATION VARIABLES
|
||||||
# Automatically start tmux
|
# Automatically start tmux
|
||||||
: ${ZSH_TMUX_AUTOSTART:=false}
|
: ${ZSH_TMUX_AUTOSTART:=false}
|
||||||
|
@ -40,6 +30,16 @@ alias tmuxconf='$EDITOR ~/.tmux.conf'
|
||||||
# Set -u option to support unicode
|
# Set -u option to support unicode
|
||||||
: ${ZSH_TMUX_UNICODE:=false}
|
: ${ZSH_TMUX_UNICODE:=false}
|
||||||
|
|
||||||
|
# ALIASES
|
||||||
|
|
||||||
|
alias ta='tmux attach -t'
|
||||||
|
alias tad='tmux attach -d -t'
|
||||||
|
alias ts='tmux new-session -s'
|
||||||
|
alias tl='tmux list-sessions'
|
||||||
|
alias tksv='tmux kill-server'
|
||||||
|
alias tkss='tmux kill-session -t'
|
||||||
|
alias tmuxconf='$EDITOR $ZSH_TMUX_CONFIG'
|
||||||
|
|
||||||
# Determine if the terminal supports 256 colors
|
# Determine if the terminal supports 256 colors
|
||||||
if [[ $terminfo[colors] == 256 ]]; then
|
if [[ $terminfo[colors] == 256 ]]; then
|
||||||
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
|
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
|
||||||
|
|
Loading…
Reference in a new issue