Sfoglia il codice sorgente

show user.name when git rep dir

pull/1/head
10sr 12 anni fa
parent
commit
629acecab0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      bashrc

+ 1
- 1
bashrc Vedi File

@@ -474,7 +474,7 @@ __my_prompt_function(){ # used by PS1
local pwd=$(echo "${PWD}/" | sed -e "s#${HOME}#~#")
local oldpwd=$(echo "${OLDPWD}/" | sed -e "s#${HOME}#~#")
local jobnum=$(jobs | wc -l) # a strange job exists...
local git=$(__try_exec __git_ps1 [GIT:%s])
local git="$(__try_exec __git_ps1 "[GIT:$(__try_exec git config --get user.name):%s]")"
local date=$(LANG=C __try_exec date +"%a, %d %b %Y %T %z")
local dirs=$(dirs | wc -l)
fi


Caricamento…
Annulla
Salva