Skip to content

Commit

Permalink
Fix for Agnoster Theme bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmetalfanx committed Feb 18, 2023
1 parent 51d2e18 commit 0a3cde7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
12 changes: 9 additions & 3 deletions components/themePlugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ function ohmyzshThemeInstall() {
}

function installAgnosterTheme() {
# setopt promptsubs may need to be added to zshrc file too

themeName="agnoster"


clear
echo -e "Moving needed file first"
cp "${localOhMyZshDir}/lib/git.zsh" "${zshConfigDir}"

echo -e "Sourcing needed file"
echo -en "source ${zshConfigDir}/git.zsh" >> ${zshConfigFile}

echo -e "Setting up ${themeName} theme"
echo -e "\n# Theming\nsetopt promptsubst" >> ${zshConfigFile}
ohmyzshThemeInstall ${themeName}

Expand Down
2 changes: 2 additions & 0 deletions components/theming.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
source "components/themePlugins.sh"


###########################################################################################3
# Theme Related
Expand Down
7 changes: 3 additions & 4 deletions setupZSH.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ source components/plugins.sh
source components/aliases.sh
source components/general.sh
source components/theming.sh
source components/themePlugins.sh

#################################################################################

Expand Down Expand Up @@ -48,11 +47,11 @@ function selectSetupType() {
metaAliasAndOthers
;;

# [tT]) clear
[tT]) clear
# ohmyzshPlugins && zshUserPlugins && zshPluginAutoComplete && userPrompt
# freshThemeTry1
themeChooser
# metaAliasAndOthers
# ;;
;;

*) echo -e "invalid selection" && sleep 1 && selectSetupType ;;

Expand Down

0 comments on commit 0a3cde7

Please sign in to comment.