02.08.2009Make ya Prompt sexy!
There literally is a thousand ways to make your prompt look nice. I just found one, that makes your prompt smile if the last command succeeded and look sad in case the command was invalid.
Here you can see what I mean:

In case you liked that, here’s the command:
1 | PS1="\u@\h:\w \`if [[ \$? = 0 ]]; then echo \[\033[01\;32m\]\\\:\\\)\[\033[00m\]; else echo \[\033[01\;31m\]\\\:\\\(\[\033[00m\]; fi\` " |
This sets your $PS1 environment variable like this:
PS1 = user@host:workingDir exec( if(last return value == 0) then echo
else echo
)
The \[}033… stuff is there for the colors, the \\\:\\\) is an escaped smiley. This way the shell does not interpred the : and the ) characters.
You can just paste it in you terminal and try it out for the session, or edit your .bashrc (in case you use the BASH)
Anyway, hope you enjoy
01.08.2009More Photos
07.07.2009Am Poppelsdorfer Schloss
07.07.2009Zwei Kendo-typen
07.07.2009Mein Dad beim segeln
16.06.2009Am Grillen am Rhein
03.06.2009Launching taskmonkee 0.1
I really, really like ToDo lists, but for Linux I just can’t seem to find one,
that suits my needs… Some look crappy, some are too simple and
some are too complex.
I don’t want a CLI version, don’t want a text file, don’t want no categories
and priorities, no 59% done bar… nothing of that!
What I want is to see todays tasks. That also includes the ones, which are
late and the ones, which have no due date. And sometimes I want to peek
a look at upcoming tasks as well. And of course I want to add, edit, complete
and delete tasks…
So far that is what my new program ‘taskmonkee’ does. It is written in Python,
using GTK and it works well under Ubuntu. Just needs some python bindings in
order to run. (‘glade’, ‘gtk’ and ‘SQLite’.)
…and oh, by the way… it’s open source. So make sure, to check it out on my
brand new github account











