script cleanup
This commit is contained in:
parent
a8cd608f8a
commit
d726a6812c
4 changed files with 27 additions and 25 deletions
8
fish.sh
8
fish.sh
|
@ -1,7 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#installs and sets up oh-my-fish
|
#installs and sets up oh-my-fish
|
||||||
sudo apt install git fish
|
sudo apt install git fish
|
||||||
curl -L https://get.oh-my.fish | fish
|
|
||||||
|
#Set up configuration
|
||||||
ln -s "$HOME/stevset/fish/omf" "$HOME/.config/"
|
ln -s "$HOME/stevset/fish/omf" "$HOME/.config/"
|
||||||
|
|
||||||
|
#download script
|
||||||
|
curl -L https://get.oh-my.fish | fish
|
||||||
|
|
||||||
|
#setup theme
|
||||||
omf install bobthefish
|
omf install bobthefish
|
||||||
|
|
||||||
|
|
27
init.sh
27
init.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#install pre-req.
|
#install pre-req.
|
||||||
echo -n "Which Linux flavor will we be installing programs for? (u/o)"; read answer
|
echo -n "Which Linux flavor will we be installing programs for? (u/o)"; read -r answer
|
||||||
if [[ $answer = "U" ]] || [[ $answer = "u" ]]; then
|
if [[ $answer = "U" ]] || [[ $answer = "u" ]]; then
|
||||||
bash udeps.sh
|
bash udeps.sh
|
||||||
elif [[ $answer = "O" ]] || [[ $answer = "o" ]]; then
|
elif [[ $answer = "O" ]] || [[ $answer = "o" ]]; then
|
||||||
|
@ -11,7 +11,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#setup prezto
|
#setup prezto
|
||||||
echo "Select which shell to configure and use:"; read answer
|
echo "Select which shell to configure and use: zsh/fish/bash"; read -r answer
|
||||||
if [[ $answer = "zsh" ]] || [[ $answer = "z" ]]; then
|
if [[ $answer = "zsh" ]] || [[ $answer = "z" ]]; then
|
||||||
echo "Initializing Prezto"
|
echo "Initializing Prezto"
|
||||||
zsh prezto.zsh
|
zsh prezto.zsh
|
||||||
|
@ -35,27 +35,30 @@ chmod 0700 ~/.ssh
|
||||||
chmod -R 0600 ~/.ssh/*
|
chmod -R 0600 ~/.ssh/*
|
||||||
#cp "$HOME/stevset/mc" "$HOME/.config/mc"
|
#cp "$HOME/stevset/mc" "$HOME/.config/mc"
|
||||||
|
|
||||||
|
#Configure git user
|
||||||
|
echo -n "Would you like to configure your git name and email? (y/n) => "; read -r answer
|
||||||
|
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
|
echo -n "What is your git user name => "; read -r name
|
||||||
|
git config --global user.name "$name"
|
||||||
|
echo -n "What is your git email => "; read -r email
|
||||||
|
git config --global user.email "$email"
|
||||||
|
fi
|
||||||
|
|
||||||
#install spacevim
|
#install spacevim
|
||||||
echo "Installing Space VIM!"
|
|
||||||
if [ ! -e ~/.space-vim ]
|
if [ ! -e ~/.space-vim ]
|
||||||
then
|
then
|
||||||
mv "$HOME/.vim" "$HOME/vim_bk"
|
mv "$HOME/.vim" "$HOME/vim_bk"
|
||||||
mv "$HOME/.vimrc" "$HOME/vimrc_bk"
|
mv "$HOME/.vimrc" "$HOME/vimrc_bk"
|
||||||
|
echo "Install SpaceVim now? y/n"; read -r answer
|
||||||
|
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
(curl -sLf https://spacevim.org/install.sh | bash)
|
(curl -sLf https://spacevim.org/install.sh | bash)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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
|
fi
|
||||||
|
|
||||||
#install Emacs Doom
|
#install Emacs Doom
|
||||||
echo "Install Emacs Doom now? y/n"; read answer
|
echo "Install Emacs Doom now? y/n"; read -r answer
|
||||||
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
zsh emacs_doom.zsh
|
./emacs_doom.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "*******************************"
|
echo "*******************************"
|
||||||
|
|
13
prezto.zsh
13
prezto.zsh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
#Initializes Prezto
|
#Initializes Prezto
|
||||||
echo "initialize submodules and clone prezto"
|
|
||||||
git clone --recursive -j 4 https://github.com/steveokard/prezto.git "$HOME/stevset/prezto/.zprezto"
|
git clone --recursive -j 4 https://github.com/steveokard/prezto.git "$HOME/stevset/prezto/.zprezto"
|
||||||
|
|
||||||
#Remove old stuff
|
#Remove old stuff
|
||||||
echo "....Creating symlinks"
|
echo "....Creating symlinks"
|
||||||
rm -rf ~/.zshrc ~/.zsh ~/.zprofile ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zshenv
|
rm -rf ~/.zshrc ~/.zsh ~/.zprofile ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zshenv
|
||||||
|
@ -12,17 +12,10 @@ for rcfile in "${ZDOTDIR:-$HOME}"/stevset/prezto/.zprezto/runcoms/^README.md(.N)
|
||||||
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
|
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
|
||||||
done
|
done
|
||||||
|
|
||||||
#Fix History if it exists
|
#setup theme
|
||||||
if test -f "~/.zsh_history"; then
|
|
||||||
cat ~/.zsh_history > ~/.zhistory
|
|
||||||
fi
|
|
||||||
|
|
||||||
#extra setup for powerlevel10k theme
|
|
||||||
echo "remember to run p10k configure to configure the theme!"
|
echo "remember to run p10k configure to configure the theme!"
|
||||||
#ln -s $HOME/stevset/.p10k.zsh $HOME/
|
|
||||||
|
|
||||||
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
|
ln -s $HOME/.zprezto/modules/prompt/external/powerlevel10k/prompt_powerlevel10k_setup $HOME/.zprezto/modules/prompt/functions/prompt_powerlevel10k_setup
|
||||||
|
|
||||||
#finally, fix permissions to avoid compaudit flag
|
#finally, fix permissions to avoid compaudit flag
|
||||||
chmod -R go-w ~/.zprezto
|
chmod -R go-w ~/.zprezto
|
||||||
|
|
||||||
|
|
0
scripts/fixNXDomain.zsh
Normal file → Executable file
0
scripts/fixNXDomain.zsh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue