export BASHRC_MTIME=`stat -c%Y ~/.bashrc`
auto_update() {
if [ ! $BASHRC_MTIME ] || (( "`stat -c%Y ~/.bashrc`" > $BASHRC_MTIME )); then
source ~/.bashrc
fi
}
PROMPT_COMMAND=auto_update
of course this comes at some cost - a call to stat() every prompt.
Subscribe to:
Post Comments (Atom)
#RSFtalks with Edward Snowden
What an intelligent, thoughtful individual. I find it difficult to forgive 44 for failing to pardon this patriot and instead pursuing him ...
Other Popular Posts:
-
The TP-Link Archer AC1750 C7 runs OpenWRT and is a great router IMHO. You can also try the same hardware, rebranded by Amazon as the A7: ...
-
[original post written in 2011, see below for Updates] Click image to zoom in. Here's a diagram of how I configure my Mac to locally r...
-
http://stackoverflow.com/questions/5171354/android-adb-shell-am-broadcast-bad-component-name adb shell am broadcast -a android.intent.act...
No comments:
Post a Comment