Skip to content

Instantly share code, notes, and snippets.

@imdanielch
Last active January 7, 2019 20:20
Show Gist options
  • Save imdanielch/66257daf626178e5829d58d147816820 to your computer and use it in GitHub Desktop.
Save imdanielch/66257daf626178e5829d58d147816820 to your computer and use it in GitHub Desktop.
#! /usr/bin/zsh
# prints out all the colors supported by the terminal
for COLOR in {0..255}
do
for STYLE in "38;5"
do
TAG="\033[${STYLE};${COLOR}m"
STR="${STYLE};${COLOR}"
echo -ne "${TAG}${STR}${NONE} "
done
echo
done
#===============
#load colors, most likely necessary.
autoload colors && colors
# ironman prompt
ironman=' %{^[[38;05;124m%}─%{^[[38;05;130m%}=%{^[[38;05;142m%}≡%{^[[38;05;124m%}Σ%{^[[38;05;142m%}(([ %{^[[38;05;124m%}⊐%{^[[38;05;250m%}•̀⌂•́%{^[[38;05;142m%}]%{^[[38;05;124m%}⊐%{^[[m%}: '
irondead=' %{^[[38;05;242m%}...Σ(([ ⊐x_x]⊐%{^[[m%}:'
# basic prompt on the left
if [[ $UID == 0 || $EUID == 0 ]]; then
PROMPT='%n@%M %{$fg[cyan]%}%~% %(?.$ironman.$irondead) '
else
PROMPT='%n@%M %{$fg[cyan]%}%~% %(?.%{$fg[green]%}.%{$fg[red]%})%B$%b '
fi
@imdanielch
Copy link
Author

@imdanielch
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment