-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
76 lines (66 loc) · 1.45 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
export ZSH=$HOME/.oh-my-zsh
export PATH=~/dev/flutter/bin:$PATH
ZSH_THEME="agnoster"
DEFAULT_USER=$USER
prompt_context() {}
eval $(thefuck --alias)
alias zshrc="subl ~/.zshrc"
alias be="bundle exec"
alias bepu="bundle exec pod update"
alias bepi="bundle exec pod install"
alias befs="bundle exec fastlane start"
alias bi="bundle install"
alias bu="bundle update"
alias ri="rake install"
alias gc="git checkout"
alias gco="git checkout"
alias gcm="git checkout master"
alias gcp="git commit -a && git push"
alias gpull="git pull"
alias gpush="git push"
alias gbranch="git checkout -b"
alias gclone="git clone"
alias s="subl ."
alias o="open ."
alias uuid="system_profiler SPUSBDataType | grep -A 11 -w \"iPad\|iPhone\|iPad\""
function o() {
z $1 && open .
}
export LANG=en_US.UTF-8
openx(){
if test -n "$(find . -maxdepth 1 -name '*.xcworkspace' -print -quit)"
then
echo "Opening workspace"
open *.xcworkspace
return
else
if test -n "$(find . -maxdepth 1 -name '*.xcodeproj' -print -quit)"
then
echo "Opening project"
open *.xcodeproj
return
else
echo "Nothing found"
fi
fi
}
function up() {
export git_dir="$(git rev-parse --show-toplevel 2> /dev/null)"
if [ -z $git_dir ]
then
cd ..
else
cd $git_dir
fi
}
source $ZSH/oh-my-zsh.sh
plugins=(
git
bundler
dotenv
osx
rake
rbenv
ruby
)
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"