Skip to content
Snippets Groups Projects
Commit 90f2e0fd authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Merge pull request #3 from Dieterbe/master

Switch from zsh to POSIX sh

All zsh-specific stuff will be done in a zsh function which will wrap vcsh.
parents 49c0ab74 ea6c502d
Branches
Tags
No related merge requests found
...@@ -74,20 +74,20 @@ leave() { ...@@ -74,20 +74,20 @@ leave() {
if [ "$1" = 'help' ] || [ $# -eq 0 ]; then if [ "$1" = 'help' ] || [ $# -eq 0 ]; then
help help
[ "$1" = 'help' ] [ "$1" = 'help' ]
return $? exit $?
elif [ "$1" = 'list' ]; then elif [ "$1" = 'list' ]; then
for i in $VCSH_BASE/*.git; do for i in $VCSH_BASE/*.git; do
echo $(basename $i .git) echo $(basename $i .git)
done done
return 0 exit 0
elif [ "$1" = 'run' ]; then elif [ "$1" = 'run' ]; then
use $2 use $2
shift 2 shift 2
"$@" "$@"
leave leave
return 0 exit 0
elif [ "$1" = 'use' ]; then elif [ "$1" = 'use' ]; then
if [[ -o NO_IGNORE_EOF ]]; then if [[ -o NO_IGNORE_EOF ]]; then
...@@ -104,7 +104,7 @@ elif [ "$1" = 'use' ]; then ...@@ -104,7 +104,7 @@ elif [ "$1" = 'use' ]; then
fi fi
use $2 use $2
buildPS1 buildPS1
return 0 exit 0
elif [ "$1" = 'clone' ]; then elif [ "$1" = 'clone' ]; then
GIT_REMOTE="$2" GIT_REMOTE="$2"
...@@ -142,11 +142,11 @@ elif [ "$1" = 'exit' ]; then ...@@ -142,11 +142,11 @@ elif [ "$1" = 'exit' ]; then
fi fi
leave leave
buildPS1 buildPS1
return 0 exit 0
else else
help help
return 3 exit 3
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment