I would like to create an alias that tells me the current directory I am in...
I know how to use the ~/.bashrc file and how to use the alias command within the .bashrc file. I would like to alias whereami that would show me the current directory listing of a absolute path reference if I change directories. I hope this is an accurate question or you get the gist of what I am looking to do. Thanks.
|
Code:
help alias |
alias
Quote:
eg: PS1="Testmachine:\w" |
Thanks, the pwd does work, but I wanted to play around with aliases lol. And thanks, that solved my question as well. alias whereami='pwd'. Ha ha success. Thanks. I should have thought of that...lol.
|
Quote:
|
Quote:
If you're just messing around you should try hemanthv414's suggestion. Playing with PS1 is fun. Customizing the Terminal: The Prompt » Lindesk |
All times are GMT -5. The time now is 08:58 PM. |