Agadir (2)
   Computers (13)
   Gadgets (4)
   General (36)
   Howtos (4)
   Japanese (5)
   Linux (12)
   Movies (4)
   Old Blog (90)
   Programming (5)
   Software (6)
   Web & Design (7)

 Subscribe to Posts
 Subscribe to Comments

April Fool: Windows-like bash prompt

Linux Add comments

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:

Windows Bash Prompt

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)

7 Responses to “April Fool: Windows-like bash prompt”

  1. mozey Says:

    LOOOOOOOOOOL, sweeeeeeeeeeeeeet!.

  2. Ibod Catooga Says:

    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!

  3. Beta Says:

    @ibod: LUNIX? And wow…go take your prozak.

  4. agootaC dobI Says:

    Notice the fact that it is an “April fools joke”?

  5. Daniel Says:

    Very Nice! I have always enjoyed playing with my .bashrc but never thought to make it look windows like! Thanks!~

  6. docotor Says:

    looooooooooooool

  7. Ewan Marshall Says:

    Shame I use zsh then :P, but yeah, now if only I could do it on every account on this terminal server here…

Leave a Reply

WP Theme GlossyBlue Modified by Fahdos