I hereby claim:
- I am thiagozanetti on github.
- I am thiagozanetti (https://keybase.io/thiagozanetti) on keybase.
- I have a public key whose fingerprint is 2907 9A4D 877D 1674 09F1 75F6 9CB2 4A31 BA20 688A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #! /bin/sh | |
| if [ "$(id -u)" -ne "0" ] | |
| then | |
| echo >&2 "Error: you must have a super-user status to use this command." | |
| echo >&2 "" | |
| exit |
| #! /bin/sh | |
| __svn_ps1() { | |
| test -d .svn || return 1 | |
| local root url lrev arev path | |
| url=$(svn info 2>/dev/null\ | |
| | grep -e '^URL:'\ | |
| | sed -e 's#.*: ##') |
| function __scm_ps1 { | |
| local dir="$PWD" | |
| local scm #scm system | |
| local arev #actual revision (SVN) | |
| local lrev #last revision (SVN) | |
| local info #info to show | |
| local branch #git branch hash (8 first chars) | |
| while [[ "$dir" != "/" ]]; do | |
| for scm in git hg svn bzr; do | |
| if [[ -d "$dir/.$scm" ]] && hash "$scm" &>/dev/null; then |