Currently it is:
michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$
Outside of renaming my machine and directory structure…
How could I make it be something more like:
michael:controllers$
bashbashrccommand linepromptps1
Currently it is:
michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$
Outside of renaming my machine and directory structure…
How could I make it be something more like:
michael:controllers$
Best Answer
To change it for the current terminal instance only
Just enter
PS1='\u:\W\$ '
and press enter.To change it "permanently"
In your
~/.bashrc
, find the following section:Remove the
@\h
, and replace the\w
with an uppercase\W
, so that it becomes:Save, exit, close terminal and start another to see the result.
Tons more options!