-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
executable file
·57 lines (45 loc) · 1.33 KB
/
.bash_profile
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
# Get the Git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Custom bash prompt
#
# Includes custom character for the prompt, path, and Git branch name.
#
# Source: kirsle.net/wizards/ps1.html
export PS1="\n\[$(tput bold)\]\[$(tput setaf 5)\]➜ \[$(tput setaf 6)\]\w\[$(tput setaf 3)\]\$(parse_git_branch) \[$(tput sgr0)\]"
export PATH=/opt/local/bin:/opt/local/sbin:${PATH}
# Aliases
## Tools
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
## Shortcuts
alias l='ls -l'
alias ll='ls -al'
alias pubip='wget http://ipinfo.io/ip -qO -'
## Bash profile
alias editbash='subl ~/.bash_profile'
alias resource='source ~/.bash_profile'
## Git
alias status='git status'
alias commit='git commit -m'
alias pull='git pull'
alias push='git push -u origin'
alias gitreset='git reset --soft HEAD~1'
## CocoaPods
alias podi='pod install'
alias podu='pod update'
## Directories
alias home='cd ~/'
alias docs='cd ~/Documents'
alias ios='cd ~/Documents/iOS/'
## Fastlane
alias fl="fastlane"
alias fla="fastlane action"
alias flas="fastlane actions"
alias befl="bundle exec fastlane"
alias befla="bundle exec fastlane action"
alias beflas="bundle exec fastlane actions"
# rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
cd /Users/khirsch/Documents/iOS/
clear