Skip to content

Commit

Permalink
Update tmux helper command
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPickles committed Jul 31, 2024
1 parent 2e630ad commit 0c5930b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ fi
# Use 256 color for tmux.
alias tmux="TERM=screen-256color-bce tmux"
# Attempt to take over existing sessions before creating a new tmux session.
TMUX_DEFAULT_SESSION="tmux"
alias t="tmux -u a -d -t ${TMUX_DEFAULT_SESSION} 2> /dev/null || tmux -u new -s ${TMUX_DEFAULT_SESSION}"
t() {
tmux -u new -ADs ${1:-tmux}
}
if [[ -z "$TMUX" ]]; then
# Switch to xterm if we're in a tmux session.
TERM="xterm-256color"
Expand Down

0 comments on commit 0c5930b

Please sign in to comment.