Last active
August 29, 2015 14:23
-
-
Save bsormagec/e9ab6a1e1c9bf2c74b8f to your computer and use it in GitHub Desktop.
This file contains 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
##### | |
## Ubuntu makes you sudo everything, and this takes some of the fun typing out of it. | |
##### | |
# | |
#EXAMPLE FILE 1 - script.sh: | |
#-------- | |
#!/bin/bash | |
## Include the setup of our command aliases | |
source ./sh/sh_alias.sh | |
# | |
#EXAMPLE FILE 2 - sh/sh_alias.sh: | |
#-------- | |
#!/bin/bash | |
shopt -s expand_aliases | |
alias apt-get='sudo apt-get' | |
alias _bounce_web='sudo /etc/init.d/apache2 restart' | |
alias _install='sudo apt-get -q -y install' | |
alias _update='sudo apt-get update' | |
alias _upgrade='sudo apt-get upgrade' | |
alias _dist-up='sudo apt-get dist-upgrade' | |
alias _add-repo='sudo add-apt-repository' | |
alias _rm='sudo rm' | |
alias _mv='sudo mv' | |
alias _write='sudo tee' | |
alias _append='sudo tee -a' | |
alias _cp='sudo cp' | |
alias _chown='sudo chown' | |
alias _chmod='sudo chmod' | |
alias _chgrp='sudo chgrp' | |
alias _mkdir='sudo mkdir' | |
alias _svn='sudo svn' | |
alias _sh='sudo bash' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment