Re:Keeping bash history in sync between multiple terminals
by zakj on Monday March 26, 2012 @05:09PM
(#3758657)
${VARIABLE:-value} expands to the contents of $VARIABLE, if it exists, or to "value" otherwise. In this case value is ":", a bash builtin that does nothing. Effectively, the above sets PROMPT_COMMAND to run the autojump command, then to run the pre-existing PROMPT_COMMAND, if any, or a no-op.
[ Parent
| on HN ]
There are no comments on this comment yet.