small pixel drawing of a pufferfish dotfiles

Make bash history tolerable, remove be alias
Jes Olson jolson@digitalocean.com
Wed, 29 Sep 2021 16:02:31 -0500
commit

b3820372ec1d6f7df3d57a67d711d1ba79035471

parent

7258015a720f173073302f0795befc6f1f472107

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'