2013-11-26 21:21:30 +01:00
|
|
|
ZSH=$HOME/.oh-my-zsh
|
|
|
|
|
2013-11-26 21:34:38 +01:00
|
|
|
ZSH_THEME="agnoster"
|
2015-01-24 16:46:54 +01:00
|
|
|
COMPLETION_WAITING_DOTS="true"
|
2013-11-26 21:21:30 +01:00
|
|
|
|
2015-07-03 23:35:00 +02:00
|
|
|
plugins=(vi-mode svn git python zsh-syntax-highlighting history-substring-search)
|
2013-11-26 21:21:30 +01:00
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
2013-10-09 08:21:30 +02:00
|
|
|
HISTFILE=~/.histfile
|
2013-11-30 11:00:26 +01:00
|
|
|
HISTSIZE=10240
|
|
|
|
SAVEHIST=10240
|
2013-10-09 08:21:30 +02:00
|
|
|
setopt appendhistory autocd extendedglob nomatch notify
|
|
|
|
unsetopt beep
|
2013-10-09 08:29:35 +02:00
|
|
|
|
|
|
|
autoload -U compinit
|
|
|
|
compinit
|
|
|
|
setopt completealiases
|
|
|
|
|
2013-11-26 21:21:30 +01:00
|
|
|
zstyle ':completion::complete:*' use-cache 1
|
2013-11-10 11:56:06 +01:00
|
|
|
|
2015-01-24 16:52:06 +01:00
|
|
|
# bind UP and DOWN arrow keys
|
|
|
|
zmodload zsh/terminfo
|
|
|
|
bindkey "$terminfo[cuu1]" history-substring-search-up
|
|
|
|
bindkey "$terminfo[cud1]" history-substring-search-down
|
|
|
|
bindkey -M vicmd 'k' history-substring-search-up
|
|
|
|
bindkey -M vicmd 'j' history-substring-search-down
|
|
|
|
|
2015-03-28 16:18:29 +01:00
|
|
|
# override prompt builder for the dir part
|
|
|
|
# render just the last dir name
|
|
|
|
prompt_dir() {
|
|
|
|
prompt_segment blue black '%1~'
|
|
|
|
}
|
|
|
|
|
2015-04-27 16:30:58 +02:00
|
|
|
# aliases
|
2013-10-09 11:19:02 +02:00
|
|
|
if [[ `uname` == 'Darwin' ]]; then
|
|
|
|
alias vim=/usr/local/Cellar/vim/7.4/bin/vim
|
|
|
|
fi
|
|
|
|
|
2013-12-02 10:49:22 +01:00
|
|
|
if [[ `uname` =~ 'CYGWIN.*' ]]; then
|
|
|
|
export DISPLAY=:0.0
|
2014-10-24 14:34:18 +02:00
|
|
|
else
|
2014-10-25 09:10:01 +02:00
|
|
|
alias tssh="torsocks ssh"
|
2015-07-05 11:33:08 +02:00
|
|
|
alias tscp="torsocks scp"
|
2013-12-02 10:49:22 +01:00
|
|
|
fi
|
|
|
|
|
2015-04-27 16:30:58 +02:00
|
|
|
# env vars
|
2013-10-09 08:21:30 +02:00
|
|
|
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
|
2014-02-03 11:27:06 +01:00
|
|
|
export PATH=$HOME/tools:$PATH
|
2014-04-12 07:43:24 +02:00
|
|
|
export PATH=/usr/local/heroku/bin:$PATH
|
2015-03-22 12:35:34 +01:00
|
|
|
export PATH=$HOME/tools/subuser/logic:$HOME/.subuser/bin:$PATH
|
2015-07-19 09:56:32 +02:00
|
|
|
export PATH=$HOME/dev/dotfiles/.vim/bundle/racer/target/debug:$PATH
|
|
|
|
export RUST_SRC_PATH=$HOME/dev/rust/src
|
2014-02-03 11:27:06 +01:00
|
|
|
export EDITOR="vim"
|
|
|
|
export KEYTIMEOUT=1
|
2013-10-09 12:45:04 +02:00
|
|
|
|
2015-08-01 07:22:11 +02:00
|
|
|
#temporary fix for rustc [https://github.com/rust-lang/rust-installer/issues/30], for Fedora only
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
|
|
|
|
|