dotfiles/zshrc

46 lines
894 B
Bash
Raw Normal View History

2017-11-18 02:10:59 -05:00
### ZSH Config
2017-06-19 00:49:00 -04:00
2017-11-18 10:07:28 -05:00
## Set TERM for proper colors
if [[ -z $TMUX ]]; then
2017-11-18 23:26:51 -05:00
export TERM='xterm-256color'
2017-11-18 10:07:28 -05:00
else
2017-11-18 23:26:51 -05:00
export TERM='screen-256color'
2017-11-18 10:07:28 -05:00
fi
### For local binaries (vim 8)
2017-11-18 02:41:10 -05:00
export PATH=$HOME/.local/bin:$PATH
2017-11-18 02:10:59 -05:00
## Path to your oh-my-zsh installation.
2017-11-18 02:29:25 -05:00
export ZSH=$HOME/.oh-my-zsh
2017-06-19 00:49:00 -04:00
2017-11-18 02:10:59 -05:00
## See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
2017-10-24 15:28:32 -04:00
ZSH_THEME="steeef"
2017-06-19 00:49:00 -04:00
2017-11-18 02:10:59 -05:00
## Plugins
2017-12-05 19:55:57 -05:00
plugins=(git history-substring-search)
2017-06-19 00:49:00 -04:00
source $ZSH/oh-my-zsh.sh
2017-11-18 02:10:59 -05:00
### User configuration
2017-11-18 02:29:25 -05:00
source $HOME/.aliases
2017-06-19 00:49:00 -04:00
2017-11-18 02:10:59 -05:00
## GPG Auth method
2017-06-19 00:49:00 -04:00
export GPG_TTY=$(tty)
2017-11-15 21:53:39 -05:00
## Vim stuff
# Reduce delay swithing between normal & insert mode
export KEYTIMEOUT=1
# Use vim cli mode
2017-11-15 22:38:50 -05:00
bindkey '^K' history-beginning-search-backward
bindkey '^J' history-beginning-search-forward
2017-11-15 21:53:39 -05:00
# ctrl-w removed word backwards
bindkey '^w' backward-kill-word
2017-11-18 02:10:59 -05:00
## Dircolors
eval `dircolors ~/.config/dircolors-solarized/dircolors.256dark`
2018-06-11 21:29:46 -04:00
echo 'CA' | cowsay