bs_nix/setup1_zsh.sh

15 lines
738 B
Bash
Raw Normal View History

2019-03-04 08:11:43 +00:00
#!/bin/sh
2019-06-06 03:42:01 +00:00
echo "Installing zsh..."
sudo dnf install -y zsh git
2019-03-04 08:11:43 +00:00
echo "Installing omzsh..."
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
echo "Configuring zsh..."
2019-06-06 03:42:01 +00:00
cat ~/.zshrc | sed 's/SSH_KEY_PATH=.*/SSH_KEY_PATH=\"~\/.ssh\/id_ed25519\"/g' | sed 's/plugins=.*/plugins=\(git ssh-agent zsh-autosuggestions zsh-syntax-highlighting\)/g' | sed 's/ZSH_THEME=.*/ZSH_THEME=\"gentoo\"/g' > ~/.zshrc
2019-03-04 08:11:43 +00:00
2019-06-06 03:42:01 +00:00
echo "Adding custom plugins..."
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