add setup scripts.

This commit is contained in:
2023-03-28 20:40:22 -04:00
parent 2ba19de4c8
commit daf8174766
2 changed files with 27 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# check if the files exist, and remove.
if [ -f ~/.zsh ]; then
rm -f ~/.zsh
fi
if [ -f ~/.p10k.zsh ]; then
rm -f ~/.p10k.zsh
fi
if [ -f ~/.aliases ]; then
rm -f ~/.aliases
fi
ln -s .zshrc ~/.zshrc
ln -s .p10k.zsh ~/.p10k.zsh
ln -s .aliases ~/.aliases
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
sudo apt-get install -y zsh
sudo chsh /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
./setup_symlinks.sh