From 181b39a25c3d9833cc58da4588cf24ff7babd020 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 6 Dec 2022 19:44:59 +0000 Subject: [PATCH] Update .local/share/chezmoi/home/dot_bashrc, .local/share/chezmoi/home/.chezmoiexternal.toml --- .local/share/chezmoi/home/.chezmoiexternal.toml | 6 ++++++ .local/share/chezmoi/home/dot_bashrc | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.local/share/chezmoi/home/.chezmoiexternal.toml b/.local/share/chezmoi/home/.chezmoiexternal.toml index 1581ecf1..4fe05dc1 100644 --- a/.local/share/chezmoi/home/.chezmoiexternal.toml +++ b/.local/share/chezmoi/home/.chezmoiexternal.toml @@ -41,6 +41,12 @@ type = "file" url = "https://gitlab.com/megabyte-labs/gas-station/-/raw/master/environments/prod/group_vars/all/helm.yml" refreshPeriod = "{{ $refreshPeriod }}" +[".local/bash_it"] + type = "git-repo" + url = "https://github.com/Bash-it/bash-it.git" + refreshPeriod = "{{ $refreshPeriod }}" + clone.args = ["--depth", "1"] + pull.args = ["--ff-only"] [".config/shell/lscolors.sh"] type = "file" url = "https://raw.githubusercontent.com/trapd00r/LS_COLORS/master/lscolors.sh" diff --git a/.local/share/chezmoi/home/dot_bashrc b/.local/share/chezmoi/home/dot_bashrc index b1483213..c63a2255 100644 --- a/.local/share/chezmoi/home/dot_bashrc +++ b/.local/share/chezmoi/home/dot_bashrc @@ -43,7 +43,11 @@ fi if [ "$BASH_SUPPORT" = 'true' ]; then if [[ "$(hostname)" != *'-minimal' ]]; then ### Styled Terminal - if command -v oh-my-posh > /dev/null; then + export BASH_IT="$HOME/.local/bash_it" + export BASH_IT_THEME=modern + if [ -f "$BASH_IT/bash_it.sh" ]; then + . "$BASH_IT/bash_it.sh" + elif command -v oh-my-posh > /dev/null; then # Oh My Posh (See: https://ohmyposh.dev/) eval "$(oh-my-posh init bash --config "$XDG_CONFIG_HOME/oh-my-posh/Betelgeuse.omp.json")" else