Little baby install scripts
This commit is contained in:
18
install-zsh.sh
Executable file
18
install-zsh.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
sudo apt install zsh
|
||||
|
||||
if [[ -z "$ZSH" ]]; then
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
fi
|
||||
|
||||
if [[ ! -r "$HOME/.zshrc" ]]; then
|
||||
cp ./config/zshrc "$HOME/.zshrc"
|
||||
else
|
||||
echo ".zshrc exists. Refusing to overwrite"
|
||||
fi
|
||||
|
||||
[[ -r ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]] || git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
[[ -r ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ]] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||
Reference in New Issue
Block a user