-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
29 lines (24 loc) · 901 Bytes
/
.bashrc
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
### Navigation
export CLICOLOR=1
alias ..='cd ..'
alias la='ls -alh'
### Applications
alias config='sublime ~/.bashrc'
alias te='open /Applications/TextEdit.app'
### Actions
alias reload='. ~/.bashrc && echo "Reloaded bash configuration!"'
alias sweep='find . -name .DS_Store -type f -delete'
### Git
alias g='git status'
alias gp='git remote prune origin'
source ~/.git-completion.bash
alias gcob='git checkout -b'
alias gcam='git commit -am'
alias merged='git com && git br -D @{-1} && git up && gp'
alias fixup='git add . && git ca'
parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'; }
export PS1="\[\033[38;5;213m\]>\[\033[00m\] \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
export EDITOR="sublime -w"
export BASH_SILENCE_DEPRECATION_WARNING=1
### Paths
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin # Defaults + Homebrew