From 80d6fbe6024ea66573a1490b786f11df2a5ab2ea Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 13 Jul 2012 23:01:03 +0530 Subject: [PATCH] Add another test plugin to the testing system. --- tests/.zshenv | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tests/.zshenv b/tests/.zshenv index 5e5c20e..5ed67fe 100644 --- a/tests/.zshenv +++ b/tests/.zshenv @@ -14,16 +14,28 @@ export PLUGIN_DIR="$PWD/test-plugin" mkdir "$PLUGIN_DIR" # A wrapper function over `git` to work with the test plugin repo. -pg () { - git --git-dir "$PLUGIN_DIR"/.git --work-tree "$PLUGIN_DIR" "$@" -} +alias pg='git --git-dir "$PLUGIN_DIR/.git" --work-tree "$PLUGIN_DIR"' -cat > "$PLUGIN_DIR"/aliases.zsh < "$PLUGIN_DIR"/aliases.zsh { pg init pg add . pg commit -m 'Initial commit' } > /dev/null + +# Another test plugin. + +export PLUGIN_DIR2="$PWD/test-plugin2" +mkdir "$PLUGIN_DIR2" + +# A wrapper function over `git` to work with the test plugin repo. +alias pg2='git --git-dir "$PLUGIN_DIR2/.git" --work-tree "$PLUGIN_DIR2"' + +echo 'alias hehe="echo hehe2"' > "$PLUGIN_DIR2"/aliases.zsh + +{ + pg2 init + pg2 add . + pg2 commit -m 'Initial commit' +} > /dev/null -- 2.0.0