mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
17 lines
503 B
Bash
Executable File
17 lines
503 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Install oh-my-bash
|
|
#
|
|
# shellcheck source=shared.sh
|
|
source "$HOME/.dotfiles/scripts/shared.sh"
|
|
|
|
export OSH="$HOME/.local/share/oh-my-bash"
|
|
|
|
if [ ! -d "$OSH" ]; then
|
|
[ -f "$HOME/.bashrc" ] && mv "$HOME/.bashrc" "$HOME/.bashrc.temp"
|
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended
|
|
[ -f "$HOME/.bashrc.temp" ] && mv "$HOME/.bashrc.temp" "$HOME/.bashrc"
|
|
else
|
|
msg_done "oh-my-bash ($OSH) already installed"
|
|
fi
|