forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.zsh
61 lines (52 loc) · 1.97 KB
/
aliases.zsh
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
# Shortcuts
alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub"
alias reloadcli="source $HOME/.zshrc"
alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
alias ll="$(brew --prefix coreutils)/libexec/gnubin/ls -ahlF --color --group-directories-first"
weather() { curl -4 wttr.in/${1:-antwerp} }
alias phpstorm='open -a /Applications/PhpStorm.app "`pwd`"'
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"
alias c="clear"
# Directories
alias dotfiles="cd $DOTFILES"
alias library="cd $HOME/Library"
alias sites="cd $HOME/Sites"
alias ..="cd .."
# Laravel
alias art="php artisan"
alias mfs="php artisan migrate:fresh --seed"
# PHP
alias cfresh="rm -rf vendor/ composer.lock && composer i"
# JS
alias nfresh="rm -rf node_modules/ package-lock.json && npm install"
# Vagrant
alias v="vagrant global-status"
alias vup="vagrant up"
alias vhalt="vagrant halt"
alias vssh="vagrant ssh"
alias vreload="vagrant reload"
alias vrebuild="vagrant destroy --force && vagrant up"
alias vm="ssh [email protected] -p 2222"
# Docker
alias docker-composer="docker-compose"
#alias dstop="docker stop $(docker ps -a -q)"
#alias dpurgecontainers="dstop && docker rm $(docker ps -a -q)"
#alias dpurgeimages="docker rmi $(docker images -q)"
#dbuild() { docker build -t=$1 .; }
#dbash() { docker exec -it $(docker ps -aqf "name=$1") bash; }
# Git
alias commit="git add . && git commit -m"
alias gcommit="git add . && git commit"
alias wip="commit wip"
alias gst="git status"
alias gb="git branch"
alias gc="git checkout"
alias gd="git diff"
alias gl="git log --oneline --decorate --color"
alias gnuke="git clean -df && git reset --hard"
alias nah="git reset --hard && git clean -df"
alias wip="git add . && git commit -m 'wip'"
# Gcloud
alias playground="./cloud_sql_proxy -instances=ionplayground-344320:us-central1:ion-db-1=tcp:3307"
alias qa="./cloud_sql_proxy -instances=ion-testing-350520:us-central1:ion-db-1=tcp:3308"
alias prod="./cloud_sql_proxy -instances=ion-learn-production:us-central1:ion-db-e3abe04d=tcp:3309"