aboutsummaryrefslogtreecommitdiffstats
path: root/bash/.bashrc
diff options
context:
space:
mode:
authorjason2024-09-27 15:20:01 -0600
committerjason2024-09-27 15:20:15 -0600
commit46c1c2e280dd9a7ad2d4383c4bbd7dbc36edd2e0 (patch)
treecf79dfd102e67df0027b3946ace3dc1c68b68b9f /bash/.bashrc
parentbfe0af3f4823580df3bc14e1be76d52a9a04a96d (diff)
downloaddotfiles-46c1c2e280dd9a7ad2d4383c4bbd7dbc36edd2e0.tar.gz
dotfiles-46c1c2e280dd9a7ad2d4383c4bbd7dbc36edd2e0.zip
disable starship;fix bash completion for void
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc18
1 files changed, 6 insertions, 12 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index a4c9d6f..d9d876e 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -27,10 +27,10 @@ fi
27export SAM_CLI_TELEMETRY=0 27export SAM_CLI_TELEMETRY=0
28 28
29# Enable starship if possible 29# Enable starship if possible
30STARSHIP=`which starship 2> /dev/null` 30#STARSHIP=`which starship 2> /dev/null`
31if [ -x "$STARSHIP" ]; then 31#if [ -x "$STARSHIP" ]; then
32 eval "$(starship init bash)" 32# eval "$(starship init bash)"
33fi 33#fi
34 34
35# Enable flutter 35# Enable flutter
36if [ -d "$HOME/bin/flutter/" ]; then 36if [ -d "$HOME/bin/flutter/" ]; then
@@ -220,14 +220,8 @@ if [ -f /etc/bash_completion ]; then
220fi 220fi
221 221
222## Void 222## Void
223if [ -d /usr/share/bash-completion/completions ]; then 223[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] &&
224 for c in $(ls -1 /usr/share/bash-completion/completions/); 224 . /usr/share/bash-completion/bash_completion
225 do
226 # grub's completion uses a deprecated `have`
227 [ "$c" == "grub" ] && continue
228 . /usr/share/bash-completion/completions/$c
229 done
230fi
231 225
232## FreeBSD 226## FreeBSD
233[[ -n $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ 227[[ -n $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \