diff --git a/.zshrc b/.zshrc index 8a22f19..f6df109 100644 --- a/.zshrc +++ b/.zshrc @@ -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" @@ -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 { diff --git a/install.sh b/install.sh index d20f60a..aa8bce0 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ set -e ################################################################################ -VERSION="2.4.4" +VERSION="2.4.5" ################################################################################