Last active
December 19, 2018 19:57
-
-
Save patrickmaciel/6d044207400bb320e6957ea643c42ac0 to your computer and use it in GitHub Desktop.
bash_aliases #macos #bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias fgf='cd ~/workspace/fgf/' | |
alias vi='nvim' | |
alias vimdiff='nvim -d' | |
alias gst='git status' | |
alias gca='git commit -a' | |
alias gaa='git add --all' | |
alias valias='nvim ~/.bash_aliases' | |
alias zalias='source ~/.bash_profile' | |
alias balias='nvim ~/.bash_profile' | |
alias zss='nvim ~/.zshrc' | |
alias paux='ps aux | grep' | |
alias ki='sudo kill -9' | |
alias zzz='nvim ~/.zshrc' | |
alias ngr='sudo brew services restart nginx' | |
alias www='cd ~/workspace' | |
alias comdo='composer dump-autoload -o' | |
alias comdo5='php56 /usr/local/bin/composer dump-autoload -o' | |
alias com5='php56 /usr/local/bin/composer' | |
alias comup='composer -vvv update' | |
alias comup5='php56 /usr/local/bin/composer -vvv update' | |
alias guu='git update-index --assume-unchanged' | |
alias gdff='git difftool' | |
alias gdf='git diff' | |
alias gdfi='git diff -E -z -b -w' | |
alias gpu='git push' | |
alias gput='git push origin --tags' | |
alias gpb='git push origin `git rev-parse --abbrev-ref HEAD`' | |
alias gkm='git checkout master' | |
alias gkk='git checkout --' | |
alias gck='git checkout' | |
alias gcm='git commit -m' | |
alias art='php artisan' | |
alias art5='php56 artisan' | |
#alias ..='cd ..' | |
#alias ...='cd ../..' | |
alias gfl='git flow' | |
alias ghostw='nodemon current/index.js --watch content/themes/' | |
alias gsub='git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`' | |
alias gls='git log --stat' | |
alias lia='ls -liah' | |
alias meuip='curl ifconfig.me' | |
# Helpful | |
alias s='cd ~/workspace' | |
alias path='echo -e ${PATH//:/\\n}' | |
alias copy_ssh="pbcopy < $HOME/.ssh/id_rsa.pub" | |
alias reload="exec ${SHELL} -l" | |
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" | |
alias flush_dns="sudo killall -HUP mDNSResponder" | |
alias chdirs="find . -type d -exec chmod 755 {} \;" | |
alias chfiles="find . -type f -exec chmod 644 {} \;" | |
# Common files for editing | |
alias edit_hosts='subl /etc/hosts' | |
alias edit_httpd='subl /usr/local/etc/httpd/httpd.conf' | |
alias edit_vhosts='subl /usr/local/etc/httpd/extra/httpd-vhosts.conf' | |
alias edit_php='subl /usr/local/etc/php/7.2/php.ini' | |
# System | |
alias update='mas upgrade; brew cleanup; brew upgrade; brew update; brew cask cleanup; brew cu -a -y; composer global update; npm update -g; npm install npm@latest -g' | |
alias show_files='defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder' | |
alias hide_files='defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder' | |
alias show_desktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" | |
alias hide_desktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" | |
alias enable_gate="sudo spctl --master-enable" | |
alias disable_gate="sudo spctl --master-disable" | |
# IP | |
alias ip='dig +short myip.opendns.com @resolver1.opendns.com' | |
# NPM | |
alias nom='rm -rf node_modules/ && npm cache verify && npm install' | |
# Github | |
alias wip="git add .;git commit -m 'wip'" | |
alias nah='git reset --hard;git clean -df' | |
# Composer | |
alias dump='composer dump-autoload -o' | |
# Chrome | |
alias kill_chrome="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill" | |
# Dummy | |
alias shrug="printf '¯\_(ツ)_/¯' | pbcopy" | |
alias flipt="printf '(╯°□°)╯︵ ┻━┻' | pbcopy" | |
alias fight="printf '(ง'̀-'́)ง' | pbcopy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment