Created
January 20, 2015 08:25
-
-
Save lysender/08e1573d03dfadd67ad1 to your computer and use it in GitHub Desktop.
My Bash RC
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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= | |
# User specific aliases and functions | |
# User specific aliases and functions | |
umask 002 | |
function goto() | |
{ | |
case "$1" in | |
"htdocs" ) | |
cd /var/www/htdocs ;; | |
"data" ) | |
cd /data ;; | |
* ) | |
echo "Usage: goto <option>"; | |
echo " htdocs Document Root"; | |
echo " data Data Directory"; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment