From 1758d2642d2505d4868b6895d7663833a24ee2ed Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Thu, 31 Oct 2024 22:46:26 +0000 Subject: Add bashrc --- dot-bashrc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dot-bashrc 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" + -- cgit