summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-04-26 21:57:27 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-04-26 21:57:27 +0100
commitf956a83e92992e62d14df01c4332f882fa80b5de (patch)
treed44468f0b2bab22ea6dc765d3d231d15549aa2e7 /zsh/.zshrc
parentb143b6f30f7315fc18784adec9e4022c03c0aa08 (diff)
Fix colors in tmux
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc33
1 files changed, 2 insertions, 31 deletions
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