-
Notifications
You must be signed in to change notification settings - Fork 2
/
zshrc
88 lines (67 loc) · 2.25 KB
/
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Mental note: this is sourced for *interactive* sessions
PLATFORM=$(uname -s)
ZSH=$HOME/.zsh/oh-my-zsh
ZSH_CUSTOM=$HOME/.zsh/omz-custom
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv virtualenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator battery background_jobs history time)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="$ "
POWERLEVEL9K_BATTERY_ICON=''
POWERLEVEL9K_MODE='awesome-fontconfig'
plugins=(git thor rake virtualenv rvm extract vagrant docker git-flow archlinux zsh-autosuggestions zsh-syntax-highlighting)
# Platform-specific sections
if [[ $PLATFORM = 'Darwin' ]]; then
alias l=launch
alias gitx='launch -i nl.frim.GitX'
alias gvim=mvim
plugins=($plugins brew osx)
elif [[ $PLATFORM = 'Linux' ]]; then
if [[ $(uname -r) == *ARCH ]]; then
plugins=($plugins archlinux)
fi
fi
alias e='emacsclient -c'
alias et='emacsclient -t'
alias gA='git add --all'
DISABLE_AUTO_UPDATE="true"
source $ZSH/oh-my-zsh.sh
# Set up completion
fpath=(~/.zsh/zsh-completions $fpath)
setopt dvorak
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle :compinstall filename "~/.zshrc"
autoload -Uz compinit
compinit
# Set up history
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt sharehistory appendhistory extendedglob notify histignorealldups nohistverify
# Set up key bindings
#bindkey -v # vi-like bindings
#bindkey history-incremental-search-backward
# Set up locale
export LANG=en_GB.UTF-8
# Enable colour in programs that notice $CLICOLOR
#export CLICOLOR=1
# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
#alias ls='ls --color=auto'
##alias dir='dir --color=auto'
##alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
#fi
# A few more options
setopt noclobber multios
source ~/.zshenv.path
# Local Variables:
# mode: sh
# End: