From 5a0002c95c567f71d0b1c58725f72eb86f846894 Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 24 Jun 2019 14:51:53 -0400 Subject: [PATCH 1/2] various enhancements --- init.sh | 7 +------ prezto.zsh | 16 +++++++++++++--- scripts/fonts.sh | 9 +++++++++ 3 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 scripts/fonts.sh diff --git a/init.sh b/init.sh index f619695..70cc279 100755 --- a/init.sh +++ b/init.sh @@ -1,9 +1,4 @@ #!/bin/bash - -#git cloning -echo "initialize submodules and clone prezto" -git clone --recursive https://github.com/steveokard/prezto.git "$HOME/stevset/prezto/.zprezto" - #install pre-req. echo "installing required packages" bash deps.sh @@ -27,7 +22,7 @@ echo "Initializing Prezto" zsh prezto.zsh #set new shell -echo "set new shell to zsh" +echo "Set new shell to zsh" if [[ $SHELL != "/bin/zsh" ]] then chsh -s /bin/zsh diff --git a/prezto.zsh b/prezto.zsh index 285134d..b07bd2d 100755 --- a/prezto.zsh +++ b/prezto.zsh @@ -1,8 +1,14 @@ #!/bin/zsh #Initializes Prezto +echo "initialize submodules and clone prezto" +git clone --recursive https://github.com/steveokard/prezto.git "$HOME/stevset/prezto/.zprezto" +#fix submodules once and for all +cd $HOME/stevset/prezto/.zprezto && git submodule update --remote #Remove old stuff -rm -rf ~/.zshrc ~/.zsh ~/.zprofile +#zlogin zlogout zpreztorc zprofile zshenv zshrc +echo "....Creating symlinks" +rm -rf ~/.zshrc ~/.zsh ~/.zprofile ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zshenv #Make Environment Links, per github readme setopt EXTENDED_GLOB @@ -11,8 +17,12 @@ for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N) done #Fix History if it exists -cat ~/.zsh_history > ~/.zhistory +if test -f "~/.zsh_history"; then + cat ~/.zsh_history > ~/.zhistory +fi #extra setup for powerlevel10k theme +echo "....configuring theme" cd && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower -ln -s ~/.zprezto/modules/prompt/{external/powerlevel10k/powerlevel10k.zsh-theme,functions/prompt_powerlevel10k_setup} +ln -s $HOME/.zprezto/modules/prompt/external/powerlevel10k/prompt_powerlevel10k_setup $HOME/.zprezto/modules/prompt/functions/prompt_powerlevel10k_setup + diff --git a/scripts/fonts.sh b/scripts/fonts.sh new file mode 100644 index 0000000..51836c1 --- /dev/null +++ b/scripts/fonts.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# clone +git clone https://github.com/powerline/fonts.git --depth=1 +# install +cd fonts +./install.sh +# clean-up a bit +cd .. +rm -rf fonts From 16e26c68fd93949aaaf7c800eac72973e555328d Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 24 Jun 2019 14:53:27 -0400 Subject: [PATCH 2/2] solve themeing once and for all --- prezto.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prezto.zsh b/prezto.zsh index b07bd2d..34ee68a 100755 --- a/prezto.zsh +++ b/prezto.zsh @@ -23,6 +23,8 @@ fi #extra setup for powerlevel10k theme echo "....configuring theme" +rm ~/.purepower cd && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower +rm $HOME/.zprezto/modules/prompt/functions/prompt_powerlevel10k_setup ln -s $HOME/.zprezto/modules/prompt/external/powerlevel10k/prompt_powerlevel10k_setup $HOME/.zprezto/modules/prompt/functions/prompt_powerlevel10k_setup