It's nothing special. Here are the relevant lines from my .zshrc
user=YOURUSERNAMEHERE
if (( EUID == $(id -u $user) )); then
PROMPT="%(?,Ω,ω) %~/ "
if [[ -z $(ls /tmp | grep "ssh-") && -z $TMUX ]] ; then
echo -n "Unlock ssh key? [Y/n] "
read input
case $input in ""|[Yy]|[Yy][Ee][Ss]) eval $(ssh-agent); ssh-add ~/.ssh/id_rsa ;; esac
fi
else
PROMPT="[%B%F{red}%n%f%b@%m %B%40<..<%~%<< %b] %# "
fi
if [[ -z $DISPLAY ]]; then
PROMPT="[%B%(?,%F{blue},%F{red})%n%f%b@%m %B%40<..<%~%<< %b] %# "
fi
RPROMPT="%B%(?..%?)%b"
Basically, the Ω becomes a lowercase ω when the previous command exits with a nonzero exit code. However, if $DISPLAY is not set (X is not running) the fancy unicode characters don't often show up so I opted for a more standard prompt that changes colors to indicate the same thing. Also, if X isn't running ssh-agent probably isn't either so the prompt offers to add the ssh keys. The RPROMPT variable in zsh dictates what shows up on the right side after you run a command. In my case, I chose to display the exit code. Here it is in action
23 comments
Did you install every extension? :-p
Ha you think that and you haven't even seen the ones that don't need a tray icon
Damn you made Gnome shell look good.
Thanks! Made the theme myself
Is it available anywhere online/AUR?
I suggest you post over at r/unixporn
Yes, this.
:3 Are you running Testing?
EDIT: Nope, 4.0 was released in between the time I updated this morning and now :D
I am not though I have in the past
Personally my PC works just as good as with the kernel I installed 2011 when I built this PC.
/r/unixporn
What prompt/PS1 are you using
It's nothing special. Here are the relevant lines from my .zshrc
Basically, the Ω becomes a lowercase ω when the previous command exits with a nonzero exit code. However, if $DISPLAY is not set (X is not running) the fancy unicode characters don't often show up so I opted for a more standard prompt that changes colors to indicate the same thing. Also, if X isn't running ssh-agent probably isn't either so the prompt offers to add the ssh keys. The RPROMPT variable in zsh dictates what shows up on the right side after you run a command. In my case, I chose to display the exit code. Here it is in action
What exactly? Drop down terminal or latest kernel? :)
Well, both but I was referring to the kernel
Which drop down terminal?
I really like the color scheme and the lines you have going
I think he's using the Numix theme and this wallpaper
http://rstreeter.deviantart.com/art/N-Blox-412804791
Nice, thanks!
Indeed. Numix Dark gtk theme, Numix Colors, custom Numix shell theme and the N-Blox wallpaper