X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.shellrc;h=541417a422ae2ff1c5040e1e58c70f74b8867034;hp=a68887656de63857c2555f706cf45bd7462ce040;hb=7ae7c0c571d5d950e4f6a349130a8f3401e09ea1;hpb=ce3f8e3f7787e17f1dcbc2ceb36d701f80a2af0d diff --git a/.shellrc b/.shellrc index a688876..541417a 100644 --- a/.shellrc +++ b/.shellrc @@ -152,6 +152,11 @@ if test -n "$BASH_VERSION"; then fi complete -W "`echo $BROWSER | sed 's/:/ /g'`" start-browser + if [ "`type -t short_curdir`" != function -a \ + -r "$HOME"/admin/prog/short_curdir ]; then + . "$HOME"/admin/prog/short_curdir + fi + #if type -p pip >/dev/null 2>&1; then # eval "`pip completion --bash`" # rm -rf /tmp/pip_build_"$USER" @@ -336,7 +341,11 @@ include() { mc() { if test -n "$BASH_VERSION"; then MC_SAVE_OPS1="$OPS1" - OPS1="\u@\h \W \\$" + if [ "`type -t short_curdir`" = function ]; then + OPS1="\u@\h \`short_curdir\` \\$" + else + OPS1="\u@\h \W \\$" + fi fi if [ -n "$SLOWTERM" ]; then