Last active
August 29, 2015 13:56
-
-
Save pstachula-dev/9089169 to your computer and use it in GitHub Desktop.
Bash_profile
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
| # Aliases | |
| # Navigation | |
| alias ll='ls -alhF' | |
| alias ls='ls -alhFG --color' | |
| alias l='ls -lhFG --color' | |
| alias md="mkdir -pv" | |
| alias ~='cd ~' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias -- -="cd -" | |
| alias jd2="sudo /opt/jd2/./JDownloader2" | |
| # Custom | |
| alias apache_restart="sudo service apache2 restart" | |
| alias nginx_restart="sudo service nginx restart" | |
| alias bash_reload=". ~/.bashrc" | |
| alias fhere="find . -name " | |
| alias sai="sudo apt-get install" | |
| # Shortcuts | |
| alias pr='cd ~/projects' | |
| alias prw='cd ~/projects/web' | |
| alias prp='cd ~/projects/php' | |
| # Laravel | |
| alias a="php artisan" | |
| alias am="php artisan migrate" | |
| alias ar="php artisan routes" | |
| alias ads="php artisan db:seed" | |
| # Git | |
| alias g="git" | |
| alias gd="git diff --color" | |
| alias g:rollback="git reset --hard HEAD~1" | |
| alias gb="git reset --soft HEAD~1" | |
| alias gs="git status" | |
| alias ga="git add ." | |
| alias gc="git commit -m" | |
| alias gp="git push" | |
| alias gt="git today --since='1 days agos'" | |
| alias gl="git log --pretty=format:'%h %ad | %s [%an]' --graph --since='30 days agos' --color" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment