From e3ee7bd1b8f1ace113a86d4cdf0036a8f0de210d Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sat, 26 Nov 2011 19:01:57 +0100 Subject: [PATCH 1/1] Remove old cleanup code for `vcsh use` --- vcsh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vcsh b/vcsh index 896cda8..2c4e726 100755 --- a/vcsh +++ b/vcsh @@ -126,9 +126,6 @@ run() { seed_gitignore() { use - # Switching directory as this has to be executed from $HOME to be of any use. - # Going back into old directory at the end in case `vcsh use` is reactivated. - old_dir="$PWD" cd "$HOME" gitignores=$(for file in $(git ls-files); do while true; do @@ -153,7 +150,6 @@ seed_gitignore() { fi mv -f "$tempfile" "$HOME/.gitignore.d/$VCSH_REPO_NAME" || fatal "could not move '$tempfile' to '$HOME/.gitignore.d/$VCSH_REPO_NAME'" 53 - cd "$old_dir" } setup() { -- 2.39.5