Skip to content

Commit

Permalink
Minor fix for tx command
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed May 9, 2024
1 parent 9972bc4 commit 558838a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export PATH=~/projects/gocode/bin:$PATH
export PATH=$HOME/.bin:/usr/local/bin:$PATH

# Aliases
alias tx="TERM=screen-256color tmux attach 2>/dev/null || TERM=screen-256color tmux new -n HOME"
alias sshk="ssh $SSH_QUIET_OPTS"
alias scpk="scp $SSH_QUIET_OPTS"
alias dl="curl -ZL --max-redirs 3 --parallel-max 5 --remote-name-all"
Expand All @@ -107,6 +106,13 @@ alias cd="cd_trap"
alias ssh="ssh_trap"
alias scp="scp_trap"

# Use screen-256color on CentOS 7 for fix colors rendering (can break copy & paste)
if [[ $(grep 'CPE_NAME' /etc/os-release | tr -d '"' | cut -d':' -f5) == "7" ]] ; then
alias tx="TERM=screen-256color tmux attach 2>/dev/null || TERM=screen-256color tmux new -n HOME"
else
alias tx="tmux attach 2>/dev/null || tmux new -n HOME"
fi

################################################################################

function git_trap {
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

################################################################################

VERSION="2.4.4"
VERSION="2.4.5"

################################################################################

Expand Down

0 comments on commit 558838a

Please sign in to comment.