-
Notifications
You must be signed in to change notification settings - Fork 2
/
.aliases
34 lines (30 loc) · 1.08 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
# Git
alias gs="git status"
alias gl="git log"
alias gcs="git commit -s -S"
alias nah="git reset --hard;git clean -df"
alias wip="git add . && git commit -s -S -m 'Work In Progress' -m 'This is a trash commit to save changes'"
alias stash="git stash save --include-untracked"
alias pop="git stash pop"
# ZSH
alias zshconf="vim ~/.zshrc"
# Laravel & PHP
alias art="php artisan"
alias tinker="php artisan tinker"
alias c="composer"
alias db="php artisan migrate:fresh --seed"
alias format="vendor/bin/php-cs-fixer fix --allow-risky=yes"
# Docker
# Delete all containers
alias clco='docker rm -f $(docker ps -a --format {{.ID}})'
# Enter the Linux VM of Docker on Mac
alias dvm="docker run -it --rm --privileged --pid=host justincormack/nsenter1"
# OS Specific
alias clean="find . -name ".DS_Store" -delete"
alias copy="pbcopy <"
alias dns="sudo networksetup -setdnsservers Wi-Fi 8.26.56.26 8.8.8.8"
alias dump-brew="rm Brewfile && brew bundle dump --describe"
alias flush-dns="dscacheutil -flushcache"
alias index="sudo mdutil -E -i"
alias python="python3"
alias redis-cli='redis-cli -s /tmp/redis.sock'