-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
executable file
·41 lines (29 loc) · 899 Bytes
/
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
# Add Homebrew's executable directory to the front of the PATH
export PATH=/usr/local/bin:$PATH
# Add rbenv to ZSH so that it loads every time you open a terminal
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# Customize the prompt for Git
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
precmd () { __git_ps1 "%m" "%% " " %s " }
# Set Vim as default editor
export EDITOR='$VISUAL'
export VISUAL=vim
# Edit
alias rc='vim ~/.zshrc'
# Reload
alias src='source ~/.zshrc'
# Git
alias g='git'
# Output one filename per line
alias ls='ls -1a'
# Clear screen
alias c='clear'
# Remove history file
alias remove-history='rm ~/.zsh_history'
# Start a Ruby server in the current directory
alias serve='ruby -run -e httpd . -p 8000'
# Build and serve a Jekyll site
alias js='bundle exec jekyll serve'
# Erase current session history
function erase_history { local HISTSIZE=0; }