Browse Source

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 12 years ago
parent
commit
f39bc48648
2 changed files with 4 additions and 1 deletions
  1. +3
    -1
      bashrc
  2. +1
    -0
      gitignore

+ 3
- 1
bashrc View File

@@ -570,7 +570,9 @@ test -r /usr/share/git/git-prompt.sh && . /usr/share/git/git-prompt.sh
__my_ps1_git(){
local last=$?
null type __git_ps1 || return $last
__try_exec __git_ps1 "[GIT:$(__try_exec git config --get user.name):%s]"
null git status || return $last
test -n "`git status -s -uno`" && local star=\*
__git_ps1 "[GIT:$(__try_exec git config --get user.name):%s${star}]"
return $last
}
__my_ps1_ipaddr(){


+ 1
- 0
gitignore View File

@@ -0,0 +1 @@
\#*

Loading…
Cancel
Save