Results 1 to 2 of 2
In the ksh shell, it will show the directory where you are (ie.. host:/directory). Better example, if hostname is local, and your in the directory home, the ksh would show: ...
- 09-14-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 27
Shells
In the ksh shell, it will show the directory where you are (ie.. host:/directory). Better example, if hostname is local, and your in the directory home, the ksh would show: hostname:/home
Sometimes it's nice for certain people to know where they are on the system.
So, is there any way to do this in the bash shell?
Ken
- 09-14-2007 #2
bash rc files, and PS1
You need to research both .bashrc/.bash_profile scripting, and also PS1/bash prompting. Again these are just the first I found on google. I have found some really great tutorials years ago, but I do not remember the links.
Here are just the first sites I got when googling.
.bash rc files
Cool Solutions: Bash - Making use of your .bashrc file
PS1 prompt/ bash prompt
Howo: Change / Setup bash custom prompt (PS1)


Reply With Quote