dotfiles/install.sh

32 lines
1.1 KiB
Bash

#!/bin/sh
# cleaning
rm -rf ~/.bash* ~/.profile
rm -rf ~/.dotfiles
rm -rf ~/.config/fd ~/.config/git/ignore ~/.config/nvim ~/.config/tmux ~/.config/vim ~/.config/zsh ~/.local
rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~/.tmux.conf ~/.vim* ~/.zcomp* ~/.zsh*
# repo + preparations
git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles
mkdir -p ~/.cache ~/.config/git ~/.config/local ~/.config/zsh
## neovim
ln -sf ~/.dotfiles/nvim ~/.config/
## .gitignore
ln -sf ~/.dotfiles/git/ignore ~/.config/git/ignore
## fdignore
ln -sf ~/.dotfiles/fd ~/.config/
## tmux
ln -sf ~/.dotfiles/tmux ~/.config/
## zsh
echo "skip_global_compinit=1" > ~/.zshenv
mkdir -p ~/.cache/zsh ~/.config/zsh/plugins ~/.config/zsh/themes
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/themes/powerlevel10k
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc