forked from bond/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.zshrc
70 lines (58 loc) · 1.48 KB
/
dot.zshrc
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
62
63
64
65
66
67
68
69
70
#
# Binds
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
zstyle ':completion:*' completer _expand _complete
zstyle :compinstall filename "~/.zshrc"
autoload -Uz compinit
compinit
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# Env
export PS1="%n %B%~%b> "
export RPS1="[%l@%m]"
export EDITOR="subl -w"
# BSD / Linux utf8 differencies (yes, it's annoying)
case $(uname -s) in
*BSD)
unicode="UTF-8"
norwegian="no_NO"
;;
Darwin)
EDITOR="subl -w"
unicode="UTF-8"
norwegian="no_NO"
PATH="$PATH:/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
alias tftpstart='sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist'
;;
*)
alias ls='ls --color=auto'
unicode="utf8"
norwegian="nb_NO"
;;
esac
# Locale
# english language
export LANG="en_US.$unicode"
export LC_CTYPE="$norwegian.$unicode"
# default sorting order
export LC_COLLATE="C"
# stuff I'm used to formatted in norwegian ways
export LC_NUMERIC="$norwegian.$unicode"
export LC_TIME="$norwegian.$unicode"
export LC_TELEPHONE="$norwegian.$unicode"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH:/opt/local/bin:/var/lib/gems/1.9.1/bin:$HOME/bin"
# Aliases
alias ls='ls --color=always'
alias ll='ls -lA'
alias emacs='emacs -nw'
# Terminal specific
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
# Local overrides
[ -f ~/.zshrc.local ] && . ~/.zshrc.local