Cleanup behavior to function when things are missing
This commit is contained in:
parent
999422da87
commit
12e3c5a470
14 changed files with 35 additions and 19 deletions
|
@ -1 +1,6 @@
|
|||
eval "$(oh-my-posh init bash --config ~/.poshtheme.omp.json)"
|
||||
if [[ -n "$(type -fP oh-my-posh)" ]]; then
|
||||
OHMYPOSH_CONFIG=''
|
||||
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="~/.poshtheme.omp.json"
|
||||
eval "$(oh-my-posh init bash --config $OHMYPOSH_CONFIG)"
|
||||
unset OHMYPOSH_CONFIG
|
||||
fi
|
||||
|
|
|
@ -1 +1 @@
|
|||
source <(chezmoi completion bash)
|
||||
[[ -n "$BASH_COMPLETION_EXIST" && -n $(type -fP chezmoi) ]] && source <(chezmoi completion bash)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# The next line updates PATH for the Google Cloud SDK.
|
||||
if [ -f '/usr/lib/google-cloud-sdk/path.bash.inc' ]; then source '/usr/lib/google-cloud-sdk/path.bash.inc'; fi
|
||||
# The next line enables shell command completion for gcloud.
|
||||
if [ -f '/usr/lib/google-cloud-sdk/completion.bash.inc' ]; then source '/usr/lib/google-cloud-sdk/completion.bash.inc'; fi
|
||||
[[ -f '/usr/lib/google-cloud-sdk/path.bash.inc' ]] && source '/usr/lib/google-cloud-sdk/path.bash.inc'
|
||||
# The next line enables shell command completion for gcloud (as long as gcloud is IN the path).
|
||||
[[ -n "$(type -fP gcloud)" && -f '/usr/lib/google-cloud-sdk/completion.bash.inc' ]] && source '/usr/lib/google-cloud-sdk/completion.bash.inc'
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
source <(pip completion --bash)
|
||||
[[ -n $(type -fP pip) ]] && source <(pip completion --bash)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
if [ -r /usr/bin/terraform ]; then
|
||||
complete -C /usr/bin/terraform terraform
|
||||
TERRAFORM_BIN=$(type -fP terraform | head -1)
|
||||
if [[ -n $TERRAFORM_BIN ]]; then
|
||||
complete -C $TERRAFORM_BIN terraform
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue