add welcome in git-repl

This commit is contained in:
spacewander 2014-09-13 20:56:36 +08:00
parent 48c8fd783e
commit 5f35004d08

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
git version
echo "git-extras version ""$(git-extras -v)"
echo "type 'ls' to ls files below current directory, '!command' to execute any command or just 'subcommand' to execute any git subcommand"
while true; do
# Current branch
cur=`git symbolic-ref HEAD 2> /dev/null | cut -d/ -f3-`