Last active
December 14, 2017 10:51
-
-
Save gravitano/9ac8da5fa62fb69ff5b0 to your computer and use it in GitHub Desktop.
My ~/.bash_aliases
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
| # Export PATH(s) | |
| export PATH="$HOME/.composer/vendor/bin:$PATH" | |
| export PATH="vendor/bin:$PATH" | |
| export PATH="bin:$PATH" | |
| export ANDROID_HOME=$HOME/Android/Sdk | |
| export PATH=$PATH:$ANDROID_HOME/tools | |
| export PATH=$PATH:$ANDROID_HOME/platform-tools | |
| export PATH=$HOME/Code/Labs/flutter/bin:$PATH | |
| # APT | |
| alias update="sudo apt-get update -y" | |
| alias upgrade="sudo apt-get upgrade -y" | |
| # Fuck | |
| alias f="fuck" | |
| # Git Aliases | |
| alias g="git" | |
| alias ga="g add" | |
| alias gs="g status" | |
| alias gch="g checkout" | |
| alias gaa="ga ." | |
| alias gc="g commit -m" | |
| alias gt="g tag" | |
| alias gd="g diff" | |
| alias gp="g push" | |
| alias gpo="g push origin" | |
| alias gpl="g pull" | |
| alias gundo="g reset --soft HEAD~" | |
| # Function | |
| function gacp { | |
| gaa | |
| gc "$1" | |
| gp | |
| } | |
| # Laravel Aliases | |
| alias artisan="php artisan" | |
| alias a="artisan" | |
| alias c="composer" | |
| alias code="cd ~/Code" | |
| alias labs="cd ~/Code/Labs" | |
| # Shortcuts | |
| alias pbcopy='xclip -selection clipboard' | |
| alias pbpaste='xclip -selection clipboard -o' | |
| alias sshkey="pbcopy ~/.ssh/id_rsa.pub" | |
| # PHP FPM | |
| alias php.stop="sudo service php7.1-fpm stop" | |
| alias php.restart="sudo service php7.1-fpm restart" | |
| alias php.start="sudo service php7.1-fpm start" | |
| # Nginx | |
| alias nginx.stop="sudo service nginx stop" | |
| alias nginx.restart="sudo service nginx restart" | |
| alias nginx.start="sudo service nginx start" | |
| # Other(s) | |
| alias sshedit="vi ~/.ssh/config" | |
| alias t="phpunit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment