From: gregor herrmann Date: Tue, 27 Sep 2011 17:18:13 +0000 (+0200) Subject: Pass some variables to the login shell. X-Git-Url: https://git.toastfreeware.priv.at/gregoa/movein.git/commitdiff_plain/10a374a187e586a6b4980e9f84c39bedb0d35cc5?hp=20b56b0862351799a71a89e2bfcef1a2498febd1 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. --- 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() {