aboutsummaryrefslogtreecommitdiff
path: root/zshrc
blob: 02fb1311c8bc122d8c1a641f8052d94b398cc511 (plain)
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
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh

# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="xcolour"

# Set to this to use case-sensitive completion
export CASE_SENSITIVE="true"

# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="true"

# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...

export LSCOLORS="exgxbxdxcxegedxbxgxcxd"

export EDITOR=vim

bindkey "\e[3~" delete-char

if [ -e $HOME/.zshrc-local ]; then
    source $HOME/.zshrc-local
fi

# runs after local because 'most' isn't standard,
# and macports will be set up in local
if [[ -e $(which most) ]]; then
    export PAGER=most
fi

# run after local because local because user bin should
# take absolute priority
export PATH=$HOME/bin:$PATH

function preexec () {
    echo "($fg[magenta]`date +%r`$reset_color) $fg[cyan]$3$reset_color"
}