diff options
| author | Blake Romero <blake@blkrom.com> | 2024-10-31 22:46:26 +0000 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-10-31 22:46:26 +0000 |
| commit | 1758d2642d2505d4868b6895d7663833a24ee2ed (patch) | |
| tree | 1fdbc65ce756eb119c3a24f297b49a41aad2e879 | |
| parent | fb65b544dc6523421541ab6fe599a5f8cbecfab3 (diff) | |
Add bashrc
| -rw-r--r-- | dot-bashrc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dot-bashrc b/dot-bashrc new file mode 100644 index 0000000..6a213c7 --- /dev/null +++ b/dot-bashrc @@ -0,0 +1,30 @@ +#!/bin/bash +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# Disable suspend/resume (ctrl-s, ctrl-q) +stty -ixon + +# Enable extended globbing +shopt -s extglob + +# History settings +HISTTIMEFORMAT="%F %T " +HISTCONTROL=ignoredups + +# Number of lines to store in RAM +HISTSIZE=5000 + +# Number of lines to store on file +HISTFILESIZE=10000 + +# Append history instead of overwriting +shopt -s histappend + +# Immediately add history instead of end of session +export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" + |
