From 1dc29de3df6e35b972d935f7b390198ff6913b63 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 8 Dec 2021 12:11:09 -0600 Subject: make sure all config dirs exist and unzip only necessary fonts --- deploy.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 44e2a68..dfbafee 100755 --- a/deploy.sh +++ b/deploy.sh @@ -13,6 +13,8 @@ xconfig="${XDG_CONFIG_HOME:-${HOME}/.config}" userbin="$HOME/.local/bin" +mkdir -p "$xcache" "$xdata" "$xconfig" "$userbin" + # deploy to XDG dirs mkdir -p "${xcache}/zsh" mkdir -p "${xdata}/zsh" @@ -64,7 +66,12 @@ if [ ! -e ~/.config/git/config-local ]; then fi if [ ! -e ~/.local/share/fonts/sourcecodepro-nerd ]; then mkdir -p ~/.local/share/fonts/sourcecodepro-nerd - unzip local/SourceCodePro.zip -d ~/.local/share/fonts/sourcecodepro-nerd + unzip local/SourceCodePro.zip \ + "Sauce Code Pro Nerd Font Complete.ttf" \ + "Sauce Code Pro Bold Nerd Font Complete.ttf" \ + "Sauce Code Pro Italic Nerd Font Complete.ttf" \ + "Sauce Code Pro Bold Italic Nerd Font Complete.ttf" \ + -d ~/.local/share/fonts/sourcecodepro-nerd echo "Run \'fc-cache -v\' to rebuild your font cache" fi dconfig="$xconfig/duplicity" -- cgit v1.2.3