Archivio

Posts Tagged ‘howto’

Fancy and useful bash prompt

28 luglio 2008 Giorgio Nessun commento

Is your old bash prompt a bit “outdated”? Ok, let’s give it some spice.

Open your


/etc/profile

and throw the following line in (no linebreak):


export PS1="\[\033[1;32m\][\$(date +%H:%M)]\[\033[0;36m\][\u@\[\033[0;31m\]\h:\[\033[1;34m\]\w]\[\033[0m\]"

Save, close the file and issue the following command:


source /etc/profile

What do you get? Well…something like this:


[18:05][root@moveaway:/home]

It’s:


[HH:MM][user@hostname:/current_dir]

Have a nice and colorful day!

Bookmarks for Luglio 2nd from 11:36 to 11:36

2 luglio 2008 Giorgio Nessun commento

These are my links for Luglio 2nd from 11:36 to 11:36:

Bookmarks for Giugno 26th from 15:19 to 15:19

26 giugno 2008 Giorgio Nessun commento

Bookmarks for Giugno 24th from 11:54 to 11:54

24 giugno 2008 Giorgio Nessun commento

These are my links for Giugno 24th from 11:54 to 11:54:

Bookmarks for Giugno 24th from 09:00 to 09:00

24 giugno 2008 Giorgio Nessun commento

These are my links for Giugno 24th from 09:00 to 09:00: