Skip to content

Instantly share code, notes, and snippets.

@margnus1
Created February 4, 2014 13:26
Show Gist options
  • Save margnus1/8803523 to your computer and use it in GitHub Desktop.
Save margnus1/8803523 to your computer and use it in GitHub Desktop.
Useful bashrc lines for Uppsala University computer systems.
#
# Other direct PATH settings
#
if [[ "$MAGNUS_PATH_ADDED" != "yes" ]]; then
export MAGNUS_PATH_ADDED=yes
export PATH="${HOME}/bin:${PATH}:/usr/hacks/bin:/usr/hacks/games"
export MANPATH="${MANPATH}:/usr/hacks/man"
fi
#
# Non-interactive shells does not have a prompt so we can end the
# configuration here.
# Do not modify PATH:s beyond this line
#
[ -z "${PS1}" ] && return
export PAGER=less
export MANPAGER=less
export PS1="^[[1;31m\h \W>^[[m "
# Variant without colors
#export PS1="\h \W> "
set +o ignoreeof
stty erase ^?
export TERM=xterm-color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment