From f956a83e92992e62d14df01c4332f882fa80b5de Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 26 Apr 2016 21:57:27 +0100 Subject: Fix colors in tmux --- zsh/.zshrc | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 8fb638c..d809354 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,5 @@ -# Write tmp file if it doesn't exist -[[ ! -f ~/.zsh/tmp ]] && echo "export COLORSCHEME=dark" > ~/.zsh/tmp +export PATH="${PATH}:$HOME/bin" +export EDITOR=/usr/bin/nvim # Source configuration files source "$HOME/.zsh/plugins" @@ -12,23 +12,6 @@ bindkey -a 'j' history-beginning-search-forward bindkey '^P' history-beginning-search-backward bindkey '^N' history-beginning-search-forward -# Paths of executables -export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/bin/core_perl:$HOME/bin" - -# Editor -export EDITOR=/usr/bin/nvim - -# Fix tmux colors -if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then - case $(tmux showenv TERM 2>/dev/null) in - *256color) ;& - TERM=fbterm) - TERM=screen-256color ;; - *) - TERM=screen - esac -fi - # Export GPG-agent related if [[ -f "${HOME}/.gpg-agent-info" ]]; then source ${HOME}/.gpg-agent-info @@ -36,16 +19,4 @@ if [[ -f "${HOME}/.gpg-agent-info" ]]; then export SSH_AUTH_SOCK fi - -# Tmux colors fix -if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then - case $(tmux showenv TERM 2>/dev/null) in - *256color) ;& - TERM=fbterm) - TERM=screen-256color ;; - *) - TERM=screen - esac -fi - [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh -- cgit v1.2.3