R Ronaldr Jul 15, 2009 #1 Hello All, I'm wondering how to show the current location Im in while browsing the filesystem ? Currently when I log in it displays a %, I would like it say something like /home/user1% and then change to whichever folder im in. -Thanks
Hello All, I'm wondering how to show the current location Im in while browsing the filesystem ? Currently when I log in it displays a %, I would like it say something like /home/user1% and then change to whichever folder im in. -Thanks
OP R Ronaldr Jul 16, 2009 Thread Starter #3 Thanks for the post, it helped. I found this other page that seemed to be more straight forward for others browsing this thread http://www.faqs.org/faqs/unix-faq/faq/part2/section-4.html
Thanks for the post, it helped. I found this other page that seemed to be more straight forward for others browsing this thread http://www.faqs.org/faqs/unix-faq/faq/part2/section-4.html
SirDice Administrator Staff member Administrator Moderator Jul 16, 2009 #4 Here's my prompt for (t)csh: Code: set prompt = "%n@%m:%~%#" Code: %n = username %m = hostname %~ = current directory, shows ~ when in $HOME %# = shows % for normal users, # when root See csh(1) for more of the % variables you can use.
Here's my prompt for (t)csh: Code: set prompt = "%n@%m:%~%#" Code: %n = username %m = hostname %~ = current directory, shows ~ when in $HOME %# = shows % for normal users, # when root See csh(1) for more of the % variables you can use.