aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorjason2024-01-23 10:08:44 -0700
committerjason2024-01-23 10:08:44 -0700
commit43d54855f99d8f03646a55b84312f1624c7b31ce (patch)
treeb8008a17e77fa4937f9d4f2422814d5bd2bac989 /bash
parent00aa00a28209dc0c9b8d0b71a4475be74786ef02 (diff)
downloaddotfiles-43d54855f99d8f03646a55b84312f1624c7b31ce.tar.gz
dotfiles-43d54855f99d8f03646a55b84312f1624c7b31ce.zip
tweaks for bash history; add asdf
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc18
1 files changed, 12 insertions, 6 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 4236353..6913398 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -88,6 +88,12 @@ if [ -d /usr/local/lib/nodejs ]; then
88 PATH=/usr/local/lib/nodejs/node-$NJS_VERSION-$NJS_DISTRO/bin:$PATH 88 PATH=/usr/local/lib/nodejs/node-$NJS_VERSION-$NJS_DISTRO/bin:$PATH
89fi 89fi
90 90
91# asdf (virtual environments)
92if [ -x /opt/homebrew/opt/asdf/libexec/asdf.sh ]; then
93 # brew
94 . /opt/homebrew/opt/asdf/libexec/asdf.sh
95fi
96
91# Enable go 97# Enable go
92if [ -d /usr/local/go/bin ]; then 98if [ -d /usr/local/go/bin ]; then
93 PATH=$PATH:/usr/local/go/bin 99 PATH=$PATH:/usr/local/go/bin
@@ -228,14 +234,14 @@ alias e="${EDITOR}"
228 234
229# History settings 235# History settings
230#export HISTTIMEFORMAT="[%F %T] " 236#export HISTTIMEFORMAT="[%F %T] "
231export HISTSIZE=99999 # Store unlimited entries. Default: 500 237export HISTSIZE=99999 # Store unlimited entries. Default: 500
232export HISTFILESIZE=-1 # Unlimited file size 238export HISTFILESIZE=999999999 # Unlimited file size
233shopt -s histappend # append entries rather than overwrite 239#shopt -s histappend # append entries rather than overwrite
234shopt -s cmdhist # Store multi-line commands as a single line 240shopt -s cmdhist # Store multi-line commands as a single line
235# Store history immediately 241# Store history immediately
236## history -r rereads 242## history -r rereads
237#export PROMPT_COMMAND="history -a;history -r; ${PROMPT_COMMAND}" 243export PROMPT_COMMAND="history -a;history -r; ${PROMPT_COMMAND}"
238export PROMPT_COMMAND="history -a; ${PROMPT_COMMAND}" 244#export PROMPT_COMMAND="history -a; ${PROMPT_COMMAND}"
239export HISTCONTROL="ignoredups" 245export HISTCONTROL="ignoredups"
240export HISTIGNORE="ls:cd" 246export HISTIGNORE="ls:cd"
241 247