X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.profile;h=2cfb9431d9ad69cb6251fd751ebad263467f4035;hp=c287c85ea75a3bc65e2285e35393ed6b5915daaa;hb=7ae7c0c571d5d950e4f6a349130a8f3401e09ea1;hpb=ce3f8e3f7787e17f1dcbc2ceb36d701f80a2af0d diff --git a/.profile b/.profile index c287c85..2cfb943 100644 --- a/.profile +++ b/.profile @@ -192,7 +192,12 @@ if [ -t 0 ] ; then ;; esac - OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \W \\$" + if [ -r "$HOME"/admin/prog/short_curdir ]; then + . "$HOME"/admin/prog/short_curdir + OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \`short_curdir\` \\$" + else + OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \W \\$" + fi . "$ENV" else