Skip to content

Instantly share code, notes, and snippets.

@kevindees
Created September 19, 2018 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevindees/660c99eae1f77031a51747df0d90ae1b to your computer and use it in GitHub Desktop.
Save kevindees/660c99eae1f77031a51747df0d90ae1b to your computer and use it in GitHub Desktop.
common_bash
# laravel
alias art='php artisan'
# basic
alias lf="ls -AF"
alias _='sudo'
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub"
alias reloadcli="source $HOME/.zshrc"
alias cd..="cd ../"
alias cd...="cd ../../"
alias cd....="cd ../../../"
alias cd.....="cd ../../../../"
alias ip="curl icanhazip.com"
alias exportcode='export CDPATH=~/Code'
# git
alias g='git'
alias gs="git status"
alias gp="git push"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias wip="git add . && git commit -m 'wip'"
alias nah="git reset --hard && git clean -df"
function gac() {
git add . && git commit -m $1
}
# php
alias c='composer'
alias pu="phpunit"
function phps() {
command="$1"
if [ "$command" ]; then
cd $command
fi
php -S localhost:9999
}
# fun
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy";
alias fight="echo '(ง'̀-'́)ง' | pbcopy";
# npm
alias nr="npm run"
alias nrw="npm run watch"
alias nrp="npm run prod"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment