-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.aliases
More file actions
58 lines (47 loc) · 1.59 KB
/
.aliases
File metadata and controls
58 lines (47 loc) · 1.59 KB
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
#########
# Aliases
#########
# Composer
alias ci='composer install -vvv'
alias cu='composer update -vvv'
# Docker
alias dockerprune="docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm"
alias dockerclean="docker ps -a | egrep 'weeks ago|days ago' | awk '{print $1}' | xargs docker rm"
alias dockerpurge="docker ps -aq | xargs docker rm"
alias dpsa="docker ps -a"
# Git
alias gitcano='git commit --amend --no-edit'
alias gitlpo='git log --pretty=oneline'
alias gitlpog='gitlpo --graph'
alias gs='git status'
alias ga='git add'
alias gwb='git branch | grep \* | sed -n -e "s/^\* //p"'
alias gtfo='git branch -u origin'
alias ufm='git checkout master && git push fork master'
alias gnb='git checkout -b'
alias gpc='git push -u origin $(git branch --show-current)'
alias gcmsg='git commit -m'
# Homebrew
alias brewup='brew update && brew upgrade'
# Navigation
alias cdocs='cd $HOME/Documents/'
alias cdev='cd $HOME/Development/'
# NPM
alias nr="npm run"
alias ni="npm install"
# PHPBrew
alias pb='phpbrew'
# Pip
alias py='python3'
alias pipup="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U"
# System
alias cl='clear && l'
alias vrc='vim ~/.zshrc' # You don't want to link this and the next alias, Nick. Trust me.
alias reload='exec zsh' # What happens if you quickly save a bad mistake?
# Tools
alias job-dsl='java -jar /Users/nrebhun/Development/Tools/job-dsl-core-1.70-standalone.jar'
# Vagrant
frequent_vms=()
alias vs="print $frequent_vms | xargs vagrant status"
alias vsh="vagrant ssh"
alias HULK_SMASH='print $frequent_vms | xargs vagrant destroy'