Just a quick one.
Trying to modify my PS1 to show just a specific number of chracters.
Currently :
[email protected]@linuxhostname
This is because I have just intergrated some systems in my environment which allow a windows user to log into a linux environment using windows ceredntials. Hense the double domain.
I want to remove everything after the first @ symbol, which currently fits in the \u switch.
Is there a way to tell the \u switch to only use say the first 4 characters of the user-name. So instead of "[email protected]", I get just "user", ultimalty getting user@linuxhost?
Thanks in advance!!!