Browse Source

add windate, waiting to be tested

pull/1/head
10sr 12 years ago
parent
commit
f795709f35
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      bashrc

+ 5
- 3
bashrc View File

@@ -92,6 +92,7 @@ then
else else
alias upgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes" alias upgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes"
fi fi
iswindows && ! type windate >/dev/null 2>&1 && alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'"
# alias diff="$(type colordiff >/dev/null 2>&1 && test $TERM != dumb && echo color)diff -u" # alias diff="$(type colordiff >/dev/null 2>&1 && test $TERM != dumb && echo color)diff -u"
# type trash >/dev/null 2>&1 && alias rm=trash # type trash >/dev/null 2>&1 && alias rm=trash


@@ -103,17 +104,19 @@ git-make-local-rep(){
} }


dir="${__MYGITBAREREP}/$1.git" dir="${__MYGITBAREREP}/$1.git"
cdir=$PWD


if test -d "$dir" if test -d "$dir"
then then
echo "dir $dir already exist!" 1>&2 echo "dir $dir already exist!" 1>&2
else else
mkdir -p "$dir" && { mkdir -p "$dir" && {
pushd "$dir" &&
cd "$dir" &&
git init --bare --shared=all git init --bare --shared=all
popd
} }
fi fi

cd ${cdir}
} }


bak(){ bak(){
@@ -382,5 +385,4 @@ showinfo(){


iswindows || __try_exec finger $USER iswindows || __try_exec finger $USER
LANG=C __try_exec id LANG=C __try_exec id

} }

Loading…
Cancel
Save