1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
set -x
# -PATH-------------------------------------------------------------------------
# ~/bin
path=( /home/aziz/bin $path )

# New bin
path=( $ZSH/custom/bin $path )

# current directory
path=( . $path )
# ------------------------------------------------------------------------------

export EDITOR='vim'

if [[ $(hostname) == "naboo" ]]; then
        export VISUAL='vim'
elif [[ $(hostname) == "tatooine" ]]; then
        export VISUAL='gvim'
fi

export FCEDIT='vim'
export GIT_EDITOR='vim'

# Note: if `export CDPATH=.:~` is used instead
# autocompletion will not work for dirs that
# are not in the current dir.
cdpath=( $cdpath .. ~ )

# -oh-my-zsh--------------------------------------------------------------------
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="azizlight"
# export ZSH_THEME="test" # Uncomment to test a new theme

export DISABLE_AUTO_TITLE_IN_SCREEN="true"

# Disable auto update
export DISABLE_AUTO_UPDATE="true"

# Load oh-my-zsh plugins
plugins=(github git moc rvm gem tmux ruby vim vmail zsh-syntax-highlighting linux extract)

# Load oh-my-zsh
source $ZSH/oh-my-zsh.sh 
# ------------------------------------------------------------------------------

# eval `ssh-agent`
# ssh-add ~/.ssh/id_rsa

# 256 colors
export TERM="xterm-256color" 

source $HOME/.oh-my-zsh/custom/aziz_ssh-agent.zsh

# The line below is necessary to avoid having what I like to call the rvm_cwd bug.
# If you cd into a dir with a .rvmrc file, the terminal window will be renamed to 
# rvm_rvmrc_cwd.
# The line below fixes that.
# Note that this might break if you create a `.` alias.
unsetopt auto_name_dirs
# rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.