-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
111 lines (82 loc) · 3.71 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
ZSH_DISABLE_COMPFIX=true
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
#ZSH_THEME="fleeting"
#DISABLE_UPDATE_PROMPT=true
# Aliases
alias zshconfig="code ~/.zshrc"
alias ohmyzsh="code ~/.oh-my-zsh"
alias gitconfig="code ~/.gitconfig"
alias starshipconfig="code ~/.config/starship.toml"
alias hyperconfig="code ~/.hyper.js"
alias mv='mv -v'
alias rm='rm -i -v'
alias cp='cp -v'
alias ls="ls -G"
#alias rm="trash"
alias now="date-now --format='YYYYMMDDHHmmss'"
# weather and the moon
alias weather='curl -4 http://wttr.in/Austin'
alias moon='curl -4 http://wttr.in/Moon'
# Enable aliases to be sudo’ed
alias sudo='sudo '
alias downloads="cd ~/Downloads"
alias documents="cd ~/Documents"
alias desktop="cd ~/Desktop"
alias sites="cd ~/Sites"
alias ip='IP=`dig +short myip.opendns.com @resolver1.opendns.com`; echo "${IP}=> IP copied to clipboard."; echo "${IP}" | pbcopy'
alias flushdns='dscacheutil -flushcache'
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to clipboard.'"
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
alias addvhost="sh ~/Sites/puphpet-72/vhostalias.sh"
alias vssh="cd ~/Sites/puphpet-72 && vagrant ssh"
alias vup="cd ~/Sites/puphpet-72 && vagrant up"
alias hosts='code /etc/hosts'
# Deployments
alias deploythatshit="fab production deploy"
function ship() {
fab production deploy;
}
function deploy() {
fab "$@" deploy;
}
function cdeploy() {
cap "$@" deploy; # capistrano alias for our old deployment process
}
# M-Pire CMS v2
alias cmscache="rm -rfv app/tmp/cache/* && mkdir app/tmp/cache/persistent && touch app/tmp/cache/persistent/empty && mkdir app/tmp/cache/models && touch app/tmp/cache/models/empty"
alias cmspublish="app/Console/cake publish --quiet"
alias habitat="ssh habitat"
alias habitatdeploy="ssh habitatdeploy"
alias habitatip='echo "198.58.101.143"'
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# Hide/show all desktop icons (useful when presenting)
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
alias update="sudo softwareupdate --install --all && brew update && brew upgrade && brew cleanup && npm install -g npm && npm update -g"
eval "$(hub alias -s)"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(osx git github git-extras smart-cd-with-k)
source $ZSH/oh-my-zsh.sh
#source ~/.fresh/build/shell.sh
#source ~/allthethings.sh
source ~/k.sh
#source ~/bazel/bazel-bin/scripts/bazel-complete.bash
/usr/local/bin/starwars-cli --style box
/usr/local/bin/git-tip
# Customize to your needs...
NODE_PATH="$HOME/.npm-packages/lib/node_modules:$NODE_PATH"
export PATH=$HOME/.npm-packages/bin:$HOME/.rvm/bin:/usr/local/bin:$PATH:$HOME/.rvm/bin/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/:/Users/fleeting/Library/Python/2.7/bin:/Users/fleeting/Library/Python/2.7/lib/python/site-packages:~/.composer/vendor/bin:$HOME/bazel/output:/Users/fleeting/.composer
export PATH="$HOME/.yarn/bin:$PATH"
#export JAVA_HOME="`/usr/libexec/java_home -v 1.8`"
# added by travis gem
[ -f /Users/fleeting/.travis/travis.sh ] && source /Users/fleeting/.travis/travis.sh
# Starship - https://starship.rs
eval "$(starship init zsh)"