various enhancements
This commit is contained in:
parent
39520f1c4e
commit
5a0002c95c
3 changed files with 23 additions and 9 deletions
7
init.sh
7
init.sh
|
@ -1,9 +1,4 @@
|
||||||
#!/bin/bash
|
#!/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.
|
#install pre-req.
|
||||||
echo "installing required packages"
|
echo "installing required packages"
|
||||||
bash deps.sh
|
bash deps.sh
|
||||||
|
@ -27,7 +22,7 @@ echo "Initializing Prezto"
|
||||||
zsh prezto.zsh
|
zsh prezto.zsh
|
||||||
|
|
||||||
#set new shell
|
#set new shell
|
||||||
echo "set new shell to zsh"
|
echo "Set new shell to zsh"
|
||||||
if [[ $SHELL != "/bin/zsh" ]]
|
if [[ $SHELL != "/bin/zsh" ]]
|
||||||
then
|
then
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
|
|
16
prezto.zsh
16
prezto.zsh
|
@ -1,8 +1,14 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
#Initializes Prezto
|
#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
|
#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
|
#Make Environment Links, per github readme
|
||||||
setopt EXTENDED_GLOB
|
setopt EXTENDED_GLOB
|
||||||
|
@ -11,8 +17,12 @@ for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N)
|
||||||
done
|
done
|
||||||
|
|
||||||
#Fix History if it exists
|
#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
|
#extra setup for powerlevel10k theme
|
||||||
|
echo "....configuring theme"
|
||||||
cd && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower
|
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
|
||||||
|
|
||||||
|
|
9
scripts/fonts.sh
Normal file
9
scripts/fonts.sh
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue