8000 fix(shell): Revert Append commands to PROMPT_COMMAND · musq/dotfiles@085a334 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 085a334

Browse files
committed
fix(shell): Revert Append commands to PROMPT_COMMAND
This reverts commit 5ae7ac4. Since bash_exports has been moved to the top in bash_profile in faf5af5, there is no need to use such checks now. Hence, PROMPT_COMMAND can safely be initialized to `history -a;`.
1 parent faf5af5 commit 085a334

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/shell/bash_exports

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,7 @@ export PIPENV_VENV_IN_PROJECT="true"
175175
# Make new shells get the history lines from all previous
176176
# shells instead of the default "last window closed" history
177177

178-
[[ "$PROMPT_COMMAND" != *"history -a;"* ]] \
179-
&& PROMPT_COMMAND="history -a; ${PROMPT_COMMAND}"
180-
181-
export PROMPT_COMMAND
178+
export PROMPT_COMMAND="history -a;"
182179

183180
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
184181

0 commit comments

Comments
 (0)
0