diff options
| author | jason | 2023-03-13 15:39:44 -0600 |
|---|---|---|
| committer | jason | 2023-03-13 15:41:37 -0600 |
| commit | 77b74ae2dd21603ade38bc303cb24be41073a46b (patch) | |
| tree | b1c80c392b3a8f862f3a257b57db6cdcd3eeb7f5 /bash | |
| parent | 88e507f05a266f6bc5887cc7cff2f611450ac292 (diff) | |
| download | dotfiles-77b74ae2dd21603ade38bc303cb24be41073a46b.tar.gz dotfiles-77b74ae2dd21603ade38bc303cb24be41073a46b.zip | |
disable homebrew analytics;histsize fix?
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 10 |
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 |
| 78 | if [ -x /opt/homebrew/bin/brew ]; then | 78 | if [ -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)" |
| 80 | fi | 81 | fi |
| 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] " |
| 153 | export HISTSIZE= # Store unlimited entries. Default: 500 | 154 | export HISTSIZE=999999 # Store unlimited entries. Default: 500 |
| 154 | export HISTFILESIZE= # Unlimited file size | 155 | export HISTFILESIZE= # Unlimited file size |
| 155 | shopt -s histappend # append entries rather than overwrite | 156 | shopt -s histappend # append entries rather than overwrite |
| 156 | shopt -s cmdhist # Store multi-line commands as a single line | 157 | shopt -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 |
| 229 | fi | 230 | fi |
| 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. | ||
| 235 | if [ -d /opt/homebrew/opt/texinfo/bin ]; then | ||
| 236 | export PATH="/opt/homebrew/opt/texinfo/bin:$PATH" | ||
| 237 | fi | ||
| 238 | |||
| 231 | # If __git_ps1 is enabled, set that up. | 239 | # If __git_ps1 is enabled, set that up. |
| 232 | if [[ $(type -t __git_ps1) == function ]]; then | 240 | if [[ $(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 |