# Path to oh-my-zsh export ZSH=$HOME/.oh-my-zsh # Theme ZSH_THEME="eastwood" # Enable correction ENABLE_CORRECTION="true" # Dots for completion COMPLETION_WAITING_DOTS="true" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Plugins plugins=(vi-mode git) # Source oh-my-zsh source $ZSH/oh-my-zsh.sh # User configuration export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" # Editor export EDITOR=/usr/bin/vim # ssh # export SSH_KEY_PATH="~/.ssh/dsa_id" # Apps for filetypes alias -s vim=vim alias -s cpp=vim alias -s c=vim alias -s tex=vim alias -s pdf=zathura alias -s py=vim # Directories alias u='cd ~/Dropbox/phd' alias uc='cd ~/Dropbox/phd/programs' alias up='cd ~/Dropbox/phd/presentations' alias ul='cd ~/Dropbox/phd/literature' alias ur='cd ~/Dropbox/phd/reports' alias cdd='cd ~/dotfiles' # Commands alias tmux="TERM=screen-256color-bce tmux" alias g='git' alias v=$EDITOR alias tmux="TERM=screen-256color-bce tmux" alias g='git' alias v='vim' alias vs="vim --servername SYNCTEX" alias c='clear' alias m='mutt' alias a='vifm' alias mn='vim ~/.mynotes' alias x='sh ~/.xmodmap' alias mail='offlineimap' alias ca='printf "\ec"' # Configuration alias ez='vim ~/.zshrc' alias em='vim ~/.mutt/muttrc' alias ev='vim ~/.vim/vimrc' alias eza='vim ~/.zathurarc' alias et='vim ~/.tmux.conf' alias evi='vim ~/.vifm/vifmrc' alias eo='vim ~/.offlineimaprc' alias ex='vim ~/.xmodmap' # Fix smart search history bindkey -a 'k' history-beginning-search-backward bindkey -a 'j' history-beginning-search-forward # Colorscheme sleep 2 h=`date +%H` if [ $h -lt 9 ]; then xdotool key Alt+t p Down Right Return eval `dircolors ~/.solarized/dircolors-solarized/dircolors.ansi-dark` elif [ $h -lt 17 ]; then xdotool key Alt+t p Down Down Right Return eval `dircolors ~/.solarized/dircolors-solarized/dircolors.ansi-light` else xdotool key Alt+t p Down Right Return eval `dircolors ~/.solarized/dircolors-solarized/dircolors.ansi-dark` fi # Crontab jobs crontab ~/dotfiles/crontab