diff options
| author | jason | 2023-10-03 20:41:29 -0600 |
|---|---|---|
| committer | jason | 2023-10-03 20:41:29 -0600 |
| commit | bfa79a53ff59d70b0041b5626165347c3ae40137 (patch) | |
| tree | 33fcabff7ab4611220b614b30874db5743a659c3 /bash | |
| parent | 65583d4bd3d71259eb3ee942924746fd3a16202e (diff) | |
| download | dotfiles-bfa79a53ff59d70b0041b5626165347c3ae40137.tar.gz dotfiles-bfa79a53ff59d70b0041b5626165347c3ae40137.zip | |
silence `which` errors on openbsd
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 9bad580..06c603f 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -25,7 +25,7 @@ export BASH_SILENCE_DEPRECATION_WARNING=1 | |||
| 25 | export SAM_CLI_TELEMETRY=0 | 25 | export SAM_CLI_TELEMETRY=0 |
| 26 | 26 | ||
| 27 | # Enable starship if possible | 27 | # Enable starship if possible |
| 28 | STARSHIP=`which starship` | 28 | STARSHIP=`which starship 2> /dev/null` |
| 29 | if [[ -x $STARSHIP ]]; then | 29 | if [[ -x $STARSHIP ]]; then |
| 30 | eval "$(starship init bash)" | 30 | eval "$(starship init bash)" |
| 31 | fi | 31 | fi |
| @@ -49,7 +49,7 @@ if [ -d $HOME/.AndroidSDK ]; then | |||
| 49 | fi | 49 | fi |
| 50 | 50 | ||
| 51 | # Erlang/Kerl | 51 | # Erlang/Kerl |
| 52 | KERL=`which kerl` | 52 | KERL=`which kerl 2> /dev/null` |
| 53 | if [ -x $KERL ]; then | 53 | if [ -x $KERL ]; then |
| 54 | if [ -f $HOME/.config/bash_completions/kerl ]; then | 54 | if [ -f $HOME/.config/bash_completions/kerl ]; then |
| 55 | source $HOME/.config/bash_completions/kerl | 55 | source $HOME/.config/bash_completions/kerl |
| @@ -66,7 +66,7 @@ fi | |||
| 66 | if [ -d $HOME/.virtualenvs/erlang ]; then | 66 | if [ -d $HOME/.virtualenvs/erlang ]; then |
| 67 | source ~/.virtualenvs/erlang/activate | 67 | source ~/.virtualenvs/erlang/activate |
| 68 | fi | 68 | fi |
| 69 | ERL=`which erl` | 69 | ERL=`which erl 2> /dev/null` |
| 70 | if [ -x $ERL ]; then | 70 | if [ -x $ERL ]; then |
| 71 | # +pc unicode Output strings as unicode by default | 71 | # +pc unicode Output strings as unicode by default |
| 72 | # -kernal shell_history enabled Enable erl repl history | 72 | # -kernal shell_history enabled Enable erl repl history |
| @@ -97,8 +97,8 @@ fi | |||
| 97 | 97 | ||
| 98 | # Docker/Podman | 98 | # Docker/Podman |
| 99 | 99 | ||
| 100 | DOCKER_PATH=`which docker` | 100 | DOCKER_PATH=`which docker 2> /dev/null` |
| 101 | PODMAN_PATH=`which podman` | 101 | PODMAN_PATH=`which podman 2> /dev/null` |
| 102 | if [[ -n $PODMAN_PATH ]]; then | 102 | if [[ -n $PODMAN_PATH ]]; then |
| 103 | source <(podman completion bash) | 103 | source <(podman completion bash) |
| 104 | # Enable docker if it's podman | 104 | # Enable docker if it's podman |
| @@ -243,7 +243,7 @@ alias define='sdcv' | |||
| 243 | #alias dry-cleanstale="git clean -fdn -e'!__pycache__' -e'!*.py[cod]'" | 243 | #alias dry-cleanstale="git clean -fdn -e'!__pycache__' -e'!*.py[cod]'" |
| 244 | 244 | ||
| 245 | # Enable direnv (https://github.com/direnv/direnv/) | 245 | # Enable direnv (https://github.com/direnv/direnv/) |
| 246 | DIRENV=`which direnv` | 246 | DIRENV=`which direnv 2> /dev/null` |
| 247 | if [[ -x $DIRENV ]]; then | 247 | if [[ -x $DIRENV ]]; then |
| 248 | eval "$(direnv hook bash)" | 248 | eval "$(direnv hook bash)" |
| 249 | fi | 249 | fi |
| @@ -265,7 +265,7 @@ function delete-branches() { | |||
| 265 | xargs git branch --delete --force | 265 | xargs git branch --delete --force |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | XCODE_SELECT=`which xcode-select` | 268 | XCODE_SELECT=`which xcode-select 2> /dev/null` |
| 269 | if [[ -x $XCODE_SELECT ]]; then | 269 | if [[ -x $XCODE_SELECT ]]; then |
| 270 | OSX_GIT_COMPLETION=`xcode-select -p`/usr/share/git-core/git-completion.bash | 270 | OSX_GIT_COMPLETION=`xcode-select -p`/usr/share/git-core/git-completion.bash |
| 271 | if [[ -f $OSX_GIT_COMPLETION ]]; then | 271 | if [[ -f $OSX_GIT_COMPLETION ]]; then |
| @@ -291,13 +291,13 @@ export XCURSOR_SIZE=32 | |||
| 291 | export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" | 291 | export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" |
| 292 | 292 | ||
| 293 | # Enable warpdir (https://rc4.net/wd-rs/) | 293 | # Enable warpdir (https://rc4.net/wd-rs/) |
| 294 | WARPDIR=`which warpdir` | 294 | WARPDIR=`which warpdir 2> /dev/null` |
| 295 | if [[ -x $WARPDIR ]]; then | 295 | if [[ -x $WARPDIR ]]; then |
| 296 | eval "$(warpdir hook bash)" | 296 | eval "$(warpdir hook bash)" |
| 297 | fi | 297 | fi |
| 298 | 298 | ||
| 299 | # Enable terraform completions | 299 | # Enable terraform completions |
| 300 | TERRAFORM=`which terraform` | 300 | TERRAFORM=`which terraform 2> /dev/null` |
| 301 | if [[ -x $TERRAFORM ]]; then | 301 | if [[ -x $TERRAFORM ]]; then |
| 302 | complete -C $TERRAFORM terraform | 302 | complete -C $TERRAFORM terraform |
| 303 | fi | 303 | fi |