Last active
January 7, 2019 20:20
-
-
Save imdanielch/66257daf626178e5829d58d147816820 to your computer and use it in GitHub Desktop.
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
#! /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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
preview image hosted on imgur