You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
979 B
32 lines
979 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
2 years ago
|
dotfiles=$1
|
||
|
|
||
3 years ago
|
# Install ohmyzsh
|
||
|
if [ -d "$ZSH" ]; then
|
||
|
echo "ohmyzsh is installed"
|
||
|
else
|
||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||
|
fi
|
||
|
|
||
|
|
||
|
export PLUGINS=~/.oh-my-zsh/custom/plugins
|
||
|
export THEMES=~/.oh-my-zsh/themes
|
||
|
|
||
3 years ago
|
mkdir -p $PLUGINS
|
||
|
mkdir -p $THEMES
|
||
|
|
||
2 years ago
|
ln -sf $dotfiles/config/.zshrc ~/.zshrc
|
||
3 years ago
|
|
||
3 years ago
|
# Install zsh-histdb
|
||
|
git -C $PLUGINS/zsh-histdb pull || git clone https://github.com/larkery/zsh-histdb $PLUGINS/zsh-histdb
|
||
|
|
||
|
# Install zsh-autosuggestions
|
||
|
git -C $PLUGINS/zsh-autosuggestions pull || git clone https://github.com/zsh-users/zsh-autosuggestions $PLUGINS/zsh-autosuggestions
|
||
|
|
||
2 years ago
|
# Install zsh-syntax-highlighting
|
||
|
git -C $PLUGINS/zsh-syntax-highlighting pull || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PLUGINS/zsh-syntax-highlighting
|
||
|
|
||
3 years ago
|
# Install Powerlevel10k
|
||
|
git -C $THEMES/powerlevel10k pull || git clone https://github.com/romkatv/powerlevel10k $THEMES/powerlevel10k
|