@@ -15,9 +15,9 @@ function installDependencies() {
1515 # Enable Corepack and install pnpm
1616 corepack enable
1717 corepack prepare pnpm@latest --activate
18-
18+
1919 installNerdFonts # Add this call
20-
20+
2121 echo " 👌 Dependencies (including optional font) processed."
2222}
2323
@@ -77,7 +77,7 @@ function doIt() {
7777 if [ " $1 " != " -u" ]; then
7878 installDependencies;
7979 fi
80-
80+
8181 configureZsh;
8282 configureGit;
8383 configureVim;
@@ -134,15 +134,15 @@ function installNerdFonts() {
134134
135135 if [ ${# missing_commands[@]} -ne 0 ]; then
136136 echo " ⚠️ Missing required commands: ${missing_commands[*]} . Skipping Nerd Font installation."
137- return 1
137+ return 0
138138 fi
139139
140140 # Check OS (rudimentary check for Linux-like systems)
141141 if [[ " $( uname) " != " Linux" ]]; then
142142 echo " ℹ️ Nerd Font installation script is primarily designed for Linux. Skipping on $( uname) ."
143143 return 1 # Or simply return 0 if we don't want to treat non-Linux as an error for the whole script
144144 fi
145-
145+
146146 local font_dir=" $HOME /.local/share/fonts"
147147 echo " Creating font directory if it doesn't exist: $font_dir "
148148 mkdir -p " $font_dir "
@@ -184,7 +184,7 @@ function installNerdFonts() {
184184 fi
185185 echo " Removing downloaded zip file: $font_dir /$zip_file "
186186 rm -f " $font_dir /$zip_file "
187-
187+
188188 echo " Updating font cache (fc-cache -fv)..."
189189 fc-cache -fv
190190 echo " ✔️ JetBrainsMono Nerd Font installed and cache updated successfully."
@@ -196,4 +196,4 @@ function installNerdFonts() {
196196
197197doIt $1 ;
198198
199- unset installDependencies doIt configureZsh configureGit configureVim configureVSCode installNerdFonts;
199+ unset installDependencies doIt configureZsh configureGit configureVim configureVSCode installNerdFonts;
0 commit comments