Skip to content

Instantly share code, notes, and snippets.

@washingweb
Last active April 8, 2021 05:57
Show Gist options
  • Save washingweb/194c12d2ff7ce76c4bd8368ed567e232 to your computer and use it in GitHub Desktop.
Save washingweb/194c12d2ff7ce76c4bd8368ed567e232 to your computer and use it in GitHub Desktop.
rc
# share history
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=100000 # big big history
shopt -s histappend # append to history, don't overwrite it
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" # Save and reload the history after each command finishes
# aliases
alias ww-edit='vim ~/.rc/.bashrc.user'
alias ww-rc='. ~/.rc/.bashrc.user'
# source custom bashrc
if [[ -e ~/.rc/.bashrc.user ]]; then
. ~/.rc/.bashrc.user
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment