Skip to content

Instantly share code, notes, and snippets.

@woohooyeah
Last active March 15, 2023 02:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woohooyeah/3ddee210310528fc8912 to your computer and use it in GitHub Desktop.
Save woohooyeah/3ddee210310528fc8912 to your computer and use it in GitHub Desktop.
# dot.kshrc
. /etc/ksh.kshrc
case $TERM in
screen-256color|xterm*)
HOST=`hostname`
HOST=${HOST%%.*}
PS1='\[\033[0;31m\]${USER}\[\033[0m\]@\[\033[0;32m\]${HOST}\[\033[0m\] \[\033[0;36m\]${PWD##${HOME}/}\[\033[0m\] \$ '
;;
*)
PS1='\u@\h \w \$ '
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment