X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=admin%2Fprog%2Fbash_prompt;h=070390260d94f449b9893ce817ad2cb13a8222fd;hb=82270ed46376d16a9537a62edcb2d0906c0b2286;hp=a60560240e3d53c8e5901ee5de4450a353432077;hpb=dfa0b0b193cb91fd6151568bb1ad577743450b47;p=dotfiles.git diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index a605602..0703902 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -2,12 +2,13 @@ cgmem_which_prompt() { local _cgmem_which _cgmem_which="`cgmem_which 2>/dev/null`" if [ -n "$_cgmem_which" ]; then - echo "[$_cgmem_which] " + _cgmem_which=" $_cgmem_which" fi + echo "$_cgmem_which" } # Cut directories to 20% of the terminal width; add space for 3 dots -_DIR_LENGTH=`awk "END { print int(0.2 * $COLUMNS) }" /dev/null 2>&1; then #if [ "`type -t __git_ps1`" = function ]; then # PS1+='$(__git_ps1)'