Post by Uwe Werler
Thanks in advance.
The best advice as always: simplicity. Check in ksh(1), parameter PS1:
man ksh - public domain Korn shell (parameters)
You know, you've gone too far with the file and directory names when \w
path does not fit on one line. Hiding this fact is harmful obscurity..
$ grep PS1 .profile
export PS1='\n\a=== \d [\A] \u@\h(\l) \w j\j e$? h\!\n\$ '
You're probably looking for directory abbreviation tools to help this:
dirabbrev - abbreviations for long directory paths
At first glance, it's probably way too much for prompt display anyway..
I'd personally reduce this as much as possible with the ksh(1) default.
You can always call external tools for more information. You'll over
time decide how often you need it, and not feel limited on new setups.