Skip to content

Instantly share code, notes, and snippets.

@khoa-le
Created September 26, 2016 05:56
Show Gist options
  • Save khoa-le/d8b90c39ca075f57cd2d4ab37b767cb3 to your computer and use it in GitHub Desktop.
Save khoa-le/d8b90c39ca075f57cd2d4ab37b767cb3 to your computer and use it in GitHub Desktop.
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias ll="ls -lhA"
alias mkdir="mkdir -p"
alias histg="history | grep"
alias myip="curl http://ipecho.net/plain; echo"
mcd () {
mkdir -p $1
cd $1
}
clean_doctrine_cache () {
php app/console doctrine:cache:clear-metadata $1
php app/console doctrine:cache:clear-query $1
php app/console doctrine:cache:clear-result $1
}
alias nginxrestart='sudo service nginx restart'
alias nginxstop='sudo service nginx stop'
alias nginxstart='sudo service nginx start'
alias phprestart='sudo service php7.0-fpm restart'
alias phpstop='sudo service php7.0-fpm stop'
alias phpstart='sudo service php7.0-fpm start'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment