aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorjason2023-10-03 20:41:29 -0600
committerjason2023-10-03 20:41:29 -0600
commitbfa79a53ff59d70b0041b5626165347c3ae40137 (patch)
tree33fcabff7ab4611220b614b30874db5743a659c3 /bash
parent65583d4bd3d71259eb3ee942924746fd3a16202e (diff)
downloaddotfiles-bfa79a53ff59d70b0041b5626165347c3ae40137.tar.gz
dotfiles-bfa79a53ff59d70b0041b5626165347c3ae40137.zip
silence `which` errors on openbsd
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc18
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
25export SAM_CLI_TELEMETRY=0 25export SAM_CLI_TELEMETRY=0
26 26
27# Enable starship if possible 27# Enable starship if possible
28STARSHIP=`which starship` 28STARSHIP=`which starship 2> /dev/null`
29if [[ -x $STARSHIP ]]; then 29if [[ -x $STARSHIP ]]; then
30 eval "$(starship init bash)" 30 eval "$(starship init bash)"
31fi 31fi
@@ -49,7 +49,7 @@ if [ -d $HOME/.AndroidSDK ]; then
49fi 49fi
50 50
51# Erlang/Kerl 51# Erlang/Kerl
52KERL=`which kerl` 52KERL=`which kerl 2> /dev/null`
53if [ -x $KERL ]; then 53if [ -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
66if [ -d $HOME/.virtualenvs/erlang ]; then 66if [ -d $HOME/.virtualenvs/erlang ]; then
67 source ~/.virtualenvs/erlang/activate 67 source ~/.virtualenvs/erlang/activate
68fi 68fi
69ERL=`which erl` 69ERL=`which erl 2> /dev/null`
70if [ -x $ERL ]; then 70if [ -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
100DOCKER_PATH=`which docker` 100DOCKER_PATH=`which docker 2> /dev/null`
101PODMAN_PATH=`which podman` 101PODMAN_PATH=`which podman 2> /dev/null`
102if [[ -n $PODMAN_PATH ]]; then 102if [[ -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/)
246DIRENV=`which direnv` 246DIRENV=`which direnv 2> /dev/null`
247if [[ -x $DIRENV ]]; then 247if [[ -x $DIRENV ]]; then
248 eval "$(direnv hook bash)" 248 eval "$(direnv hook bash)"
249fi 249fi
@@ -265,7 +265,7 @@ function delete-branches() {
265 xargs git branch --delete --force 265 xargs git branch --delete --force
266} 266}
267 267
268XCODE_SELECT=`which xcode-select` 268XCODE_SELECT=`which xcode-select 2> /dev/null`
269if [[ -x $XCODE_SELECT ]]; then 269if [[ -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
291export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" 291export 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/)
294WARPDIR=`which warpdir` 294WARPDIR=`which warpdir 2> /dev/null`
295if [[ -x $WARPDIR ]]; then 295if [[ -x $WARPDIR ]]; then
296 eval "$(warpdir hook bash)" 296 eval "$(warpdir hook bash)"
297fi 297fi
298 298
299# Enable terraform completions 299# Enable terraform completions
300TERRAFORM=`which terraform` 300TERRAFORM=`which terraform 2> /dev/null`
301if [[ -x $TERRAFORM ]]; then 301if [[ -x $TERRAFORM ]]; then
302 complete -C $TERRAFORM terraform 302 complete -C $TERRAFORM terraform
303fi 303fi