Make bash history tolerable, remove be alias
Jes Olson jolson@digitalocean.com
Wed, 29 Sep 2021 16:02:31 -0500
1 files changed,
9 insertions(+),
3 deletions(-)
jump to
M
.env
→
.env
@@ -2,6 +2,15 @@ #!/bin/sh
PS1='$(prompt) \$ ' +# handle history like a not caveman +# Avoid duplicates +HISTCONTROL=ignoredups:erasedups +# When the shell exits, append to the history file instead of overwriting it +shopt -s histappend + +# After each command, append to the history file and reread it +PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r" + # extend pa for git stuffs pa() { case $1 in@@ -48,6 +57,3 @@ if ! pgrep syncthing &> /dev/null; then
syncthing --no-browser > /dev/null & fi fi - -# chef stuff -alias be='bundle exec'