bugfixed it
This commit is contained in:
parent
ad3c854e3e
commit
88d3c0e828
1 changed files with 12 additions and 11 deletions
23
.bashrc
23
.bashrc
|
@ -102,17 +102,18 @@ _init() {
|
||||||
|
|
||||||
while ! command_exists oh-my-posh; do
|
while ! command_exists oh-my-posh; do
|
||||||
for binDir in "${binDirs[@]}"; do
|
for binDir in "${binDirs[@]}"; do
|
||||||
case "$binDir" in
|
if [ -d "$binDir" ]; then
|
||||||
"$HOME/.local/bin")
|
case "$binDir" in
|
||||||
echo_info "Installing oh-my-posh into $binDir"
|
"$HOME/.local/bin")
|
||||||
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d "$binDir"
|
echo_info "Installing oh-my-posh into $binDir"
|
||||||
;;
|
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d "$binDir"
|
||||||
*)
|
;;
|
||||||
echo_info "Installing oh-my-posh into $binDir"
|
*)
|
||||||
curl -s https://ohmyposh.dev/install.sh | $_sudo bash -s -- -d "$binDir"
|
echo_info "Installing oh-my-posh into $binDir"
|
||||||
;;
|
curl -s https://ohmyposh.dev/install.sh | $_sudo bash -s -- -d "$binDir"
|
||||||
esac
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue