[Assorted-commits] SF.net SVN: assorted:[1853] shell-tools/trunk/src/bash-commons/bashrc.bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2013-04-03 05:26:31
|
Revision: 1853 http://sourceforge.net/p/assorted/svn/1853 Author: yangzhang Date: 2013-04-03 05:26:29 +0000 (Wed, 03 Apr 2013) Log Message: ----------- Run refresh-agent non-interactively Modified Paths: -------------- shell-tools/trunk/src/bash-commons/bashrc.bash Modified: shell-tools/trunk/src/bash-commons/bashrc.bash =================================================================== --- shell-tools/trunk/src/bash-commons/bashrc.bash 2013-03-31 22:39:05 UTC (rev 1852) +++ shell-tools/trunk/src/bash-commons/bashrc.bash 2013-04-03 05:26:29 UTC (rev 1853) @@ -909,6 +909,10 @@ # Save the current environment's agent. update-agent() { keychain --nogui --inherit any; } +# For non-interactive scripts, PROMPT_COMMAND doesn't get run, so run this at +# least once +refresh-agent + PROMPT_COMMAND=refresh-agent # TODO note that bash_completion usually does a ton of stuff (and in This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |