mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-27 12:58:28 +00:00
feat!: refactor base, config, dfm and scripts
This commit is contained in:
@@ -3,9 +3,31 @@
|
||||
# Install oh-my-posh
|
||||
#
|
||||
# shellcheck source=shared.sh
|
||||
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||
source "${DOTFILES}/config/shared.sh"
|
||||
|
||||
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin
|
||||
# Enable verbosity with VERBOSE=1
|
||||
VERBOSE="${VERBOSE:-0}"
|
||||
|
||||
eval "$(oh-my-posh init zsh --config $OHMYPOSH_CFG)"
|
||||
msg "Starting to install oh-my-posh"
|
||||
|
||||
# Install oh-my-posh
|
||||
install_oh_my_posh()
|
||||
{
|
||||
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin
|
||||
msg "oh-my-posh installed to ~/.local/bin"
|
||||
}
|
||||
|
||||
# Initialize oh-my-posh
|
||||
init_oh_my_posh()
|
||||
{
|
||||
eval "$(oh-my-posh init zsh --config $OHMYPOSH_CFG)"
|
||||
msg "oh-my-posh initialized with config $OHMYPOSH_CFG"
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
install_oh_my_posh
|
||||
init_oh_my_posh
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user