diff options
| author | jason | 2024-06-18 12:42:18 -0600 |
|---|---|---|
| committer | jason | 2024-06-18 12:42:18 -0600 |
| commit | 2f0b63de3867faa961342a51f15e10d19625f9a2 (patch) | |
| tree | 44bd65fe81f55a8f01bee240454cf62eecf91039 | |
| parent | 6b3369864327b33ee695528c0acfea8016d3e4b9 (diff) | |
| download | dotfiles-2f0b63de3867faa961342a51f15e10d19625f9a2.tar.gz dotfiles-2f0b63de3867faa961342a51f15e10d19625f9a2.zip | |
add asdf and bash completions to bashrc
| -rw-r--r-- | bash/.bashrc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 18b04c5..abf2f3f 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -201,7 +201,10 @@ alias mkvirtualenv=__mkvirtualenv | |||
| 201 | # # brew | 201 | # # brew |
| 202 | # . /opt/homebrew/opt/asdf/libexec/asdf.sh | 202 | # . /opt/homebrew/opt/asdf/libexec/asdf.sh |
| 203 | #fi | 203 | #fi |
| 204 | 204 | if [ -f "$HOME/.asdf/asdf.sh" ]; then | |
| 205 | . "$HOME/.asdf/asdf.sh" | ||
| 206 | . "$HOME/.asdf/completions/asdf.bash" | ||
| 207 | fi | ||
| 205 | ####### | 208 | ####### |
| 206 | 209 | ||
| 207 | # Enable system bash completions | 210 | # Enable system bash completions |
| @@ -211,6 +214,16 @@ if [ -f /etc/bash_completion ]; then | |||
| 211 | . /etc/bash_completion | 214 | . /etc/bash_completion |
| 212 | fi | 215 | fi |
| 213 | 216 | ||
| 217 | ## Void | ||
| 218 | if [ -d /usr/share/bash-completion/completions ]; then | ||
| 219 | for c in $(ls -1 /usr/share/bash-completion/completions/); | ||
| 220 | do | ||
| 221 | # grub's completion uses a deprecated `have` | ||
| 222 | [ "$c" == "grub" ] && continue | ||
| 223 | . /usr/share/bash-completion/completions/$c | ||
| 224 | done | ||
| 225 | fi | ||
| 226 | |||
| 214 | ## FreeBSD | 227 | ## FreeBSD |
| 215 | [[ -n $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ | 228 | [[ -n $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ |
| 216 | source /usr/local/share/bash-completion/bash_completion.sh | 229 | source /usr/local/share/bash-completion/bash_completion.sh |
| @@ -357,6 +370,9 @@ fi | |||
| 357 | if [ -d "$HOME/.nvm" ] && [ -s $HOME/.nvm/nvm.sh ]; then | 370 | if [ -d "$HOME/.nvm" ] && [ -s $HOME/.nvm/nvm.sh ]; then |
| 358 | export NVM_DIR="${HOME}/.nvm" | 371 | export NVM_DIR="${HOME}/.nvm" |
| 359 | . "$NVM_DIR/nvm.sh" | 372 | . "$NVM_DIR/nvm.sh" |
| 373 | if [ -s "$NVM_DIR/bash_completion" ]; then | ||
| 374 | . "$NVM_DIR/bash_completion" | ||
| 375 | fi | ||
| 360 | fi | 376 | fi |
| 361 | 377 | ||
| 362 | # If __git_ps1 is enabled, set that up. | 378 | # If __git_ps1 is enabled, set that up. |