diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-06-26 11:21:55 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-06-26 11:21:55 +0200 |
commit | f526017928ea2c928877dc519ad97dc5ffafd416 (patch) | |
tree | 2010630a4158d7adc829f2052f2e8ec3fe5f4b7f /zshrc | |
parent | e9a5df445029f95b6d44f9c7b086bf33f4275acf (diff) | |
parent | 17d2ff0828ed8e6e7e59948fb14f17fd5ee5f8e2 (diff) |
Merge branch 'master' of github.com:uvaes/dotfiles
Conflicts:
zshrc
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -64,7 +64,7 @@ alias purge='sudo apt-get purge' alias push='git push origin master' alias pushs='git push --recurse-submodules=check' alias remove='sudo apt-get autoremove' -alias tmux="TERM=screen-256color-bce tmux" +# alias tmux="TERM=screen-256color-bce tmux" alias update='sudo apt-get update' alias upgrade='sudo apt-get upgrade' alias v='vim' @@ -95,8 +95,6 @@ bindkey '^N' history-beginning-search-forward # Crontab jobs crontab ~/.crontab -TERM=xterm-256color -# TERM=rxvt-unicode-256color fancy-ctrl-z () { if [[ $#BUFFER -eq 0 ]]; then @@ -122,12 +120,22 @@ fshow() { [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # Set programmer dvorak -xrdb ~/.Xresources -# setxkbmap -layout us -variant dvp +# xrdb ~/.Xresources + +TERM=xterm-256color + +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 # Load external scripts source ~/github/fzf-marks/fzf-marks.zsh # source ~/github/z/z.sh # source ~/github/fzf-extras/fzf-extras.sh # source ~/github/fzf-extras/fzf-extras.zsh - |