Skip to content

Instantly share code, notes, and snippets.

@IQAndreas
Last active August 29, 2015 14:01
Show Gist options
  • Save IQAndreas/ed12b30977acc529163c to your computer and use it in GitHub Desktop.
Save IQAndreas/ed12b30977acc529163c to your computer and use it in GitHub Desktop.
RED="\[\033[0;31m\]"
RESET="\[\033[00m\]"
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
#host="@${RED}medtech${RESET}"
host="@\h"
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u${host}\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u${host}:\w\$ '
fi
# Running the script results in:
# andreas@\h:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment