Saturday, 5 January 2019

cmd.exe - How I get my command prompt to show just the name of the folder I'm in (not the whole path))

In a command prompt window (terminal), how can I get my prompt to be just the current folder?


e.g.


prompt $p $g

gives:


C:\Users\Robin >

But I want it to just show:


Robin > 

UPDATE: As @Caius Jard said in the comments, the question identified doesn't duplicate this, as I don't want to simply remove the path, I want to have the current folder name included in the prompt.


e.g.


 Program Files >

or


 Users >

Hope that clarifies

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...