summaryrefslogtreecommitdiff
path: root/plugins/tmux/tmux.plugin.zsh
diff options
context:
space:
mode:
authorajr-dev <np8r39st8hn854izdxrw.septuagenarians@aleeas.com>2022-01-27 17:59:04 +0100
committerMarc Cornellà <hello@mcornella.com>2022-01-27 21:51:13 +0100
commitad8220bc6d4529db43c0968175f1b8d0e6637db0 (patch)
treec38098619cd4913f217e0afbd8da626c85843f61 /plugins/tmux/tmux.plugin.zsh
parent303ae79712d8d1df05b3ec6f63eb129c9a2ed031 (diff)
downloadzsh-ad8220bc6d4529db43c0968175f1b8d0e6637db0.tar.gz
zsh-ad8220bc6d4529db43c0968175f1b8d0e6637db0.tar.bz2
zsh-ad8220bc6d4529db43c0968175f1b8d0e6637db0.zip
fix(tmux): use `$ZSH_TMUX_CONFIG` setting in tmuxconf alias
Diffstat (limited to 'plugins/tmux/tmux.plugin.zsh')
-rw-r--r--plugins/tmux/tmux.plugin.zsh20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 9d333257e..b9bb66d59 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -3,16 +3,6 @@ if ! (( $+commands[tmux] )); then
return 1
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
# Automatically start tmux
: ${ZSH_TMUX_AUTOSTART:=false}
@@ -40,6 +30,16 @@ alias tmuxconf='$EDITOR ~/.tmux.conf'
# Set -u option to support unicode
: ${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
if [[ $terminfo[colors] == 256 ]]; then
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR