Skip to content

Instantly share code, notes, and snippets.

@lysender
Created January 20, 2015 08:25
Show Gist options
  • Save lysender/08e1573d03dfadd67ad1 to your computer and use it in GitHub Desktop.
Save lysender/08e1573d03dfadd67ad1 to your computer and use it in GitHub Desktop.
My Bash RC
# .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