Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Last active November 5, 2016 16:14
Show Gist options
  • Save stlehmann/3b6be1f31802e49cceceeacf8f4404ae to your computer and use it in GitHub Desktop.
Save stlehmann/3b6be1f31802e49cceceeacf8f4404ae to your computer and use it in GitHub Desktop.
my personal .bashrc file
# ----------------------------------------------
# command prefix
# ----------------------------------------------
export PS1="\[\033[0;32m\]\h:\w$\[\033[0m\] "
# ----------------------------------------------
# aliases
# ----------------------------------------------
alias venv='source venv/bin/activate'
alias mng='python manage.py'
# ----------------------------------------------
# functions
# ----------------------------------------------
# mkcdir for mkdir and cd into it
mkcdir ()
{
mkdir -p -- "$1" &&
cd -P -- "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment