X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/7b0d7078dbba136a383f4f4345c9fd6474069607..32150700f045d937d0362f690b01303aa7ea2131:/vcsh diff --git a/vcsh b/vcsh index 46622af..67565b4 100755 --- a/vcsh +++ b/vcsh @@ -19,7 +19,7 @@ help() { [] Clone from an existing repository help Display this help text delete Delete an existing repository - enter Enter repository; spawn new $SHELL + enter Enter repository; spawn new instance of \$SHELL init Initialize a new repository list List all repositories list-tracked List all files tracked by vcsh @@ -33,9 +33,8 @@ help() { write-gitignore \\ Write .gitignore.d/ via git ls-files - Special command that allows you to run git commands - directly without having to type so much ;)" >&2 - Special command that enters a repository + Shortcut to run git commands directly + Shortcut to enter repository" >&2 } debug() { @@ -217,7 +216,7 @@ elif [ "$1" = 'delete' ] || elif [ "$1" = 'list' ] || [ "$1" = 'list-tracked' ]; then export VCSH_COMMAND="$1" -elif [ -n "$1" -a -n "$2" ]; then +elif [ -n "$2" ]; then export VCSH_COMMAND='run' export VCSH_REPO_NAME="$1" export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"