Skip to content

Instantly share code, notes, and snippets.

@nullpo-head
nullpo-head / ps.sh
Last active June 19, 2018 08:38
OS icon PS script
# Set a simple prompt with an OS icon!
if [ `uname` = Darwin ]; then
SYSTEM_ICON=""
PS_COL=${PS_COL:="38;5;6"}
elif [ -n "`cat /proc/version | grep Microsoft`" ]; then
SYSTEM_ICON=""
PS_COL=${PS_COL:="38;5;70"}
elif [ `uname` = Linux ]; then
SYSTEM_ICON=""