aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorjason2023-03-13 15:39:44 -0600
committerjason2023-03-13 15:41:37 -0600
commit77b74ae2dd21603ade38bc303cb24be41073a46b (patch)
treeb1c80c392b3a8f862f3a257b57db6cdcd3eeb7f5 /bash
parent88e507f05a266f6bc5887cc7cff2f611450ac292 (diff)
downloaddotfiles-77b74ae2dd21603ade38bc303cb24be41073a46b.tar.gz
dotfiles-77b74ae2dd21603ade38bc303cb24be41073a46b.zip
disable homebrew analytics;histsize fix?
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 12de64b..996a6e3 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -76,6 +76,7 @@ fi
76 76
77# Enable Homebrew 77# Enable Homebrew
78if [ -x /opt/homebrew/bin/brew ]; then 78if [ -x /opt/homebrew/bin/brew ]; then
79 export HOMEBREW_NO_ANALYTICS=1
79 eval "$(/opt/homebrew/bin/brew shellenv)" 80 eval "$(/opt/homebrew/bin/brew shellenv)"
80fi 81fi
81 82
@@ -150,7 +151,7 @@ alias e="${EDITOR}"
150 151
151# History settings 152# History settings
152#export HISTTIMEFORMAT="[%F %T] " 153#export HISTTIMEFORMAT="[%F %T] "
153export HISTSIZE= # Store unlimited entries. Default: 500 154export HISTSIZE=999999 # Store unlimited entries. Default: 500
154export HISTFILESIZE= # Unlimited file size 155export HISTFILESIZE= # Unlimited file size
155shopt -s histappend # append entries rather than overwrite 156shopt -s histappend # append entries rather than overwrite
156shopt -s cmdhist # Store multi-line commands as a single line 157shopt -s cmdhist # Store multi-line commands as a single line
@@ -228,6 +229,13 @@ if [[ -x $TERRAFORM ]]; then
228 complete -C $TERRAFORM terraform 229 complete -C $TERRAFORM terraform
229fi 230fi
230 231
232# texinfo is keg-only, which means it was not symlinked into /opt/homebrew,
233# because macOS already provides this software and installing another version
234# in parallel can cause all kinds of trouble.
235if [ -d /opt/homebrew/opt/texinfo/bin ]; then
236 export PATH="/opt/homebrew/opt/texinfo/bin:$PATH"
237fi
238
231# If __git_ps1 is enabled, set that up. 239# If __git_ps1 is enabled, set that up.
232if [[ $(type -t __git_ps1) == function ]]; then 240if [[ $(type -t __git_ps1) == function ]]; then
233 GIT_PS1_SHOWDIRTYSTATE=1 # Show unstaged and staged indicators 241 GIT_PS1_SHOWDIRTYSTATE=1 # Show unstaged and staged indicators