diff options
| author | jason | 2024-01-23 10:08:44 -0700 |
|---|---|---|
| committer | jason | 2024-01-23 10:08:44 -0700 |
| commit | 43d54855f99d8f03646a55b84312f1624c7b31ce (patch) | |
| tree | b8008a17e77fa4937f9d4f2422814d5bd2bac989 /bash | |
| parent | 00aa00a28209dc0c9b8d0b71a4475be74786ef02 (diff) | |
| download | dotfiles-43d54855f99d8f03646a55b84312f1624c7b31ce.tar.gz dotfiles-43d54855f99d8f03646a55b84312f1624c7b31ce.zip | |
tweaks for bash history; add asdf
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 18 |
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 |
| 89 | fi | 89 | fi |
| 90 | 90 | ||
| 91 | # asdf (virtual environments) | ||
| 92 | if [ -x /opt/homebrew/opt/asdf/libexec/asdf.sh ]; then | ||
| 93 | # brew | ||
| 94 | . /opt/homebrew/opt/asdf/libexec/asdf.sh | ||
| 95 | fi | ||
| 96 | |||
| 91 | # Enable go | 97 | # Enable go |
| 92 | if [ -d /usr/local/go/bin ]; then | 98 | if [ -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] " |
| 231 | export HISTSIZE=99999 # Store unlimited entries. Default: 500 | 237 | export HISTSIZE=99999 # Store unlimited entries. Default: 500 |
| 232 | export HISTFILESIZE=-1 # Unlimited file size | 238 | export HISTFILESIZE=999999999 # Unlimited file size |
| 233 | shopt -s histappend # append entries rather than overwrite | 239 | #shopt -s histappend # append entries rather than overwrite |
| 234 | shopt -s cmdhist # Store multi-line commands as a single line | 240 | shopt -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}" | 243 | export PROMPT_COMMAND="history -a;history -r; ${PROMPT_COMMAND}" |
| 238 | export PROMPT_COMMAND="history -a; ${PROMPT_COMMAND}" | 244 | #export PROMPT_COMMAND="history -a; ${PROMPT_COMMAND}" |
| 239 | export HISTCONTROL="ignoredups" | 245 | export HISTCONTROL="ignoredups" |
| 240 | export HISTIGNORE="ls:cd" | 246 | export HISTIGNORE="ls:cd" |
| 241 | 247 | ||