[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: realpath in PS1 bash



In article <[🔎] 48318E32.4070307@centrum.sk> you wrote:
> I'm wondering if it would be a good idea to have PS1 set to
> 
> '${debian_chroot:+($debian_chroot)}\u@\h:$(realpath "$(pwd)")\$ '

Personally I dont like having the shell spawn a executable. Since this will
slow down administration on heavyly loaded systems. Maybe "\pwd -P" as a
shell builtin acts a bit nicer. However I am not sure if it results in the
same path in all cases. And it is still traversing lots of inodes.

Gruss
Bernd


Reply to: