-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
49 lines (38 loc) · 1.64 KB
/
.aliases
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
# Helpers
# //////////////////////////////////////////////////////////////////////
alias pbssh="cat ~/.ssh/id_rsa.pub | pbcopy"
alias nuketrash="sudo rm -rvf ~/.Trash/.* && sudo rm -rvf ~/.Trash/*"
alias show-hidden="defaults write com.apple.finder AppleShowAllFiles YES"
alias add-spacer="defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type=\"spacer-tile\";}' && killall Dock"
alias upd="bubu && csu --preview && cgu && npm update -g && yarn global upgrade && zplug update"
# Setups
# //////////////////////////////////////////////////////////////////////
# Setup aboards
alias aboard_local="captain abandon && valet start"
alias aboard_half="aboard_local && services stop [email protected] && services stop redis && captain up -d"
alias aboard_docker="captain abandon && valet stop && captain up -d"
# Shortcuts
# //////////////////////////////////////////////////////////////////////
alias space="df -hl"
alias fs="du -sh * | sort -n"
alias rmf="rm -rf"
# Vendor aliases
# //////////////////////////////////////////////////////////////////////
# Git
# function git(){hub $@} # Prevents autocompletion bug
alias gfr="git-fresh -ftl origin"
# Git Flow aliases updated for AVH
alias gflfp="git flow feature publish"
alias gflhp="git flow hotfix publish"
alias gflbs="git flow bugfix start"
alias gflbf="git flow bugfix finish"
alias gflbp="git flow bugfix publish"
# Brew
alias cask="brew cask"
alias services="brew services"
# PHP
alias remigrate="php artisan migrate:refresh --seed"
alias recompose="rm -rf vendor composer.lock && composer install"
alias reyarn="rm -rf node_modules yarn.lock package.lock && yarn"
# Editors
alias pstt="pstorm ."