Sample Header Ad - 728x90

How can I change my bash prompt to show my working directory?

75 votes
8 answers
226000 views
I can print my current working dir like this myPrompt$ pwd /Users/me/myDir I want my shell to look like this /Users/me/myDir$ pwd /Users/me/myDir Is that possible? How can I do it?
Asked by bernie2436 (6855 rep)
Nov 13, 2013, 12:47 AM
Last activity: Nov 27, 2024, 09:24 PM