Created
February 4, 2014 13:26
-
-
Save margnus1/8803523 to your computer and use it in GitHub Desktop.
Useful bashrc lines for Uppsala University computer systems.
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
# | |
# 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