2012-11-21 16:25:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-10-22 16:25:26 +02:00
|
|
|
# cleaning
|
2016-12-19 17:06:38 +01:00
|
|
|
rm -rf ~/.bash* ~/.profile
|
|
|
|
rm -rf ~/.dotfiles
|
2020-10-22 17:10:34 +02:00
|
|
|
rm -rf ~/.config/fd ~/.config/git/ignore ~/.config/nvim ~/.config/tmux ~/.config/vim ~/.config/zsh ~/.local
|
2020-10-22 16:44:38 +02:00
|
|
|
rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~/.tmux.conf ~/.vim* ~/.zcomp* ~/.zsh*
|
2012-11-21 16:25:02 +01:00
|
|
|
|
2020-10-05 12:14:33 +02:00
|
|
|
# repo + preparations
|
2020-02-04 12:02:04 +01:00
|
|
|
git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles
|
2020-10-22 17:06:12 +02:00
|
|
|
mkdir -p ~/.cache ~/.config/git ~/.config/local ~/.config/zsh
|
2013-08-19 13:53:20 +02:00
|
|
|
|
2020-10-22 16:25:26 +02:00
|
|
|
## neovim
|
2020-10-22 16:34:18 +02:00
|
|
|
ln -sf ~/.dotfiles/nvim ~/.config/
|
2020-10-22 17:06:12 +02:00
|
|
|
|
2016-12-19 17:06:38 +01:00
|
|
|
## .gitignore
|
2020-10-22 17:06:12 +02:00
|
|
|
ln -sf ~/.dotfiles/git/ignore ~/.config/git/ignore
|
2013-08-19 11:42:09 +02:00
|
|
|
|
2020-10-22 16:25:26 +02:00
|
|
|
## fdignore
|
|
|
|
ln -sf ~/.dotfiles/fd ~/.config/
|
2020-02-05 16:27:59 +01:00
|
|
|
|
2016-12-19 17:06:38 +01:00
|
|
|
## tmux
|
2020-10-22 16:25:26 +02:00
|
|
|
ln -sf ~/.dotfiles/tmux ~/.config/
|
2016-06-16 17:26:43 +02:00
|
|
|
|
2019-07-27 11:21:58 +02:00
|
|
|
## zsh
|
2020-10-22 16:44:38 +02:00
|
|
|
echo "skip_global_compinit=1" > ~/.zshenv
|
2020-10-23 16:12:51 +02:00
|
|
|
echo "export XDG_CONFIG_HOME=~/.config" >> ~/.zshenv
|
|
|
|
echo "export XDG_DATA_HOME=~/.cache" >> ~/.zshenv
|
2020-10-22 17:34:22 +02:00
|
|
|
echo "export ZDOTDIR=~/.config/zsh" >> ~/.zshenv
|
2020-10-22 16:44:38 +02:00
|
|
|
mkdir -p ~/.cache/zsh ~/.config/zsh/plugins ~/.config/zsh/themes
|
2020-10-05 12:14:33 +02:00
|
|
|
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
|
2020-10-22 17:34:22 +02:00
|
|
|
ln -sf ~/.dotfiles/zsh/zshrc ~/.config/zsh/.zshrc
|