From daf817476653d9e79ce146bd2c026f7f7b2e658b Mon Sep 17 00:00:00 2001 From: imcompiling Date: Tue, 28 Mar 2023 20:40:22 -0400 Subject: [PATCH] add setup scripts. --- setup_symlinks.sh | 17 +++++++++++++++++ setup_zsh.sh | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 setup_symlinks.sh create mode 100644 setup_zsh.sh diff --git a/setup_symlinks.sh b/setup_symlinks.sh new file mode 100644 index 0000000..8a5fdee --- /dev/null +++ b/setup_symlinks.sh @@ -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 \ No newline at end of file diff --git a/setup_zsh.sh b/setup_zsh.sh new file mode 100644 index 0000000..a45be93 --- /dev/null +++ b/setup_zsh.sh @@ -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 \ No newline at end of file