X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=admin%2Fprog%2Fbash_prompt;h=14543705585b52f6ed8d8de2f54a1d0cd7466c5c;hb=8525913c9e27d153d370640c9870f283525f6f90;hp=57ccf72b8d2a740e7c597d0d5566e1ec806559fd;hpb=88da9e6f5b863014fec5ec7cba09eb626eb51802;p=dotfiles.git diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index 57ccf72..1454370 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -6,6 +6,10 @@ cgmem_which_prompt() { fi } +# Cut directories to 20% of the terminal width; add space for 3 dots +_DIR_LENGTH=`awk "END { print int(0.2 * ${COLUMNS:-80}) }" /dev/null 2>&1; then @@ -133,8 +141,5 @@ set_prompts() { PS1+='$(prompt_git)' #fi fi - # This is for .screenrc: shelltitle "\$ |$SHELL" - #PS1+='\[\033k\033\\\]' PS1+=' $SHLVL\$ ' - export PS1 }