configuration for prezto
This commit is contained in:
parent
f6e248b437
commit
513e70f57a
3 changed files with 8 additions and 24 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,4 +2,4 @@ cache/
|
||||||
log/
|
log/
|
||||||
vim/.vim/plugged/**
|
vim/.vim/plugged/**
|
||||||
vim/.vim/autoload/plug.vim
|
vim/.vim/autoload/plug.vim
|
||||||
pretzo/
|
prezto
|
26
init.sh
26
init.sh
|
@ -3,13 +3,16 @@
|
||||||
echo "installing required packages"
|
echo "installing required packages"
|
||||||
./deps.zsh
|
./deps.zsh
|
||||||
|
|
||||||
#remove existing configs, if they exist
|
#setup prezto
|
||||||
|
zsh prezto.zsh
|
||||||
|
|
||||||
|
#create symlinks using stow
|
||||||
echo "Stowing Configs"
|
echo "Stowing Configs"
|
||||||
stow tmux
|
stow tmux
|
||||||
stow vim
|
stow vim
|
||||||
stow zsh
|
|
||||||
stow emacs
|
stow emacs
|
||||||
stow bash
|
stow bash
|
||||||
|
stow prezto
|
||||||
|
|
||||||
#set new shell
|
#set new shell
|
||||||
echo "set new shell to zsh"
|
echo "set new shell to zsh"
|
||||||
|
@ -18,22 +21,6 @@ then
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#init git
|
|
||||||
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
|
|
||||||
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
|
||||||
echo -n "What is your git user name => "; read name
|
|
||||||
git config --global user.name "$name"
|
|
||||||
echo -n "What is your git email => "; read email
|
|
||||||
git config --global user.email "$email"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Download Antibody
|
|
||||||
echo "downloading antibody"
|
|
||||||
curl -sL https://git.io/antibody | bash -s
|
|
||||||
#echo 'source <(antibody init)' >> ~/.zshrc
|
|
||||||
#Enable fasd to be loaded by changing it's file extension
|
|
||||||
mv ~/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-clvv-SLASH-fasd/fasd ~/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-clvv-SLASH-fasd/fasd.zsh
|
|
||||||
|
|
||||||
#Install fonts
|
#Install fonts
|
||||||
if [[ -n "$SSH_CLIENT" ]]
|
if [[ -n "$SSH_CLIENT" ]]
|
||||||
then
|
then
|
||||||
|
@ -42,9 +29,6 @@ else
|
||||||
./fonts.zsh
|
./fonts.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#init vim and plugins
|
|
||||||
./vim.zsh
|
|
||||||
|
|
||||||
#init spacemacs in the background
|
#init spacemacs in the background
|
||||||
./spacemacs.zsh
|
./spacemacs.zsh
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
#Initializes Prezto
|
#Initializes Prezto
|
||||||
|
|
||||||
# Clone Prezto
|
# Clone Prezto
|
||||||
git clone --recursive https://github.com/steveokard/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
|
git clone --recursive https://github.com/steveokard/prezto.git "${ZDOTDIR:-$HOME}/stevset/prezto/.zprezto"
|
||||||
#Make Environment Links, per github readme
|
#Make Environment Links, per github readme
|
||||||
setopt EXTENDED_GLOB
|
setopt EXTENDED_GLOB
|
||||||
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
|
for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N); do
|
||||||
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
|
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue