From 10a374a187e586a6b4980e9f84c39bedb0d35cc5 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Tue, 27 Sep 2011 19:18:13 +0200 Subject: [PATCH] Pass some variables to the login shell. - Unset GIT_PS1_SHOWUNTRACKEDFILES, otherwise - if PS1 contains __git_ps1 and the variable is set in ~/.bashrc - we wait for hours at `git ls-files --others --exclude-standard' in $HOME. - Set PSMOVEIN, can be used in PS1 via ~/.basrc etc. --- movein | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/movein b/movein index ea98b73..f6d54ed 100755 --- a/movein +++ b/movein @@ -130,7 +130,7 @@ login() { export GIT_DIR="$LOCAL_REPOS/${1}.git" export GIT_WORK_TREE="$GIT_DIR/$(git config --get core.worktree)" - $SHELL -i || : + GIT_PS1_SHOWUNTRACKEDFILES= PSMOVEIN="movein:${1}" $SHELL -i || : } add() { -- 2.39.5