-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
44 lines (32 loc) · 1.11 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
autoload -Uz vcs_info
autoload -U colors && colors
# Prompt ----------------------------------------------------------------------
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' stagedstr '%F{yellow%}'
zstyle ':vcs_info:*' unstagedstr '%F{red%}'
zstyle ':vcs_info:git*' formats '%u%b %c'
precmd () { vcs_info }
setopt prompt_subst
PROMPT='${vcs_info_msg_0_}[%~]%{$reset_color%} '
# Useful aliases --------------------------------------------------------------
alias ls='ls -F --color'
alias la='ls -A'
alias c='clear'
alias ..='cd ..'
alias ...='cd ../..'
alias gp='git push origin master'
alias gs='git st --short'
alias gl='git lg'
alias ga='git add'
alias gu='git add -u'
alias gc='git commit'
alias pacup='sudo pacman -Syu'
alias t='tmux attach -d'
alias vc='lein vimclojure &'
alias leint='lein midje'
# Environment variables -------------------------------------------------------
eval `dircolors ~/.dircolors` # Changes the LS_COLORS variable
export EDITOR='vim'
export GREP_OPTIONS='--color=auto'
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"