Here is a funny trick to mess up with someone’s bash prompt: change it to look like a Windows one
To do so, add the following line to his ~/.bashrc file:
export PS1='C:${PWD//\//\\\}>'See it in action:
Here is a funny trick to mess up with someone’s bash prompt: change it to look like a Windows one
To do so, add the following line to his ~/.bashrc file:
export PS1='C:${PWD//\//\\\}>'See it in action:
June 30th, 2008
at 16:49
LOOOOOOOOOOL, sweeeeeeeeeeeeeet!.
July 1st, 2008
at 06:08
Dirty rughead this does not equal to a DOS prompt. I will promptly kick you in the nuts if you don’t give LUNIX the repsect it deserves!
I am coming to kick you!
July 1st, 2008
at 19:52
@ibod: LUNIX? And wow…go take your prozak.
July 1st, 2008
at 21:03
Notice the fact that it is an “April fools joke”?
July 1st, 2008
at 21:53
Very Nice! I have always enjoyed playing with my .bashrc but never thought to make it look windows like! Thanks!~
July 4th, 2008
at 12:44
looooooooooooool
July 8th, 2008
at 10:08
Shame I use zsh then :P, but yeah, now if only I could do it on every account on this terminal server here…
December 11th, 2008
at 10:16
I’m curious about the ${PWD//\//\\\} portion. I know ${PWD} lets you smoosh the output of PWD into the string, but what’s up with the escapes?
December 11th, 2008
at 10:16
I’m curious about the ${PWD//\//\\\} portion. I know ${PWD} lets you smoosh the output of PWD into the string, but what’s up with the escapes?
December 11th, 2008
at 10:28
@Mike: It’s to replace “/” (Linux paths) with “\” (Windows paths).
September 21st, 2009
at 16:13
How do you undo it? I dont wanna ruin my LUNIX system.