dotfiles/install.sh

49 lines
1.2 KiB
Bash
Raw Normal View History

2012-11-21 16:25:02 +01:00
#!/bin/sh
2020-08-09 23:44:31 +02:00
# cleaning & preparing
2016-12-19 17:06:38 +01:00
rm -rf ~/.bash* ~/.profile
rm -rf ~/.dotfiles
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-05 12:14:33 +02:00
mkdir -p ~/.config
2013-08-19 13:53:20 +02:00
2016-12-19 17:06:38 +01:00
## vim
# cleaning
2020-10-17 03:16:49 +02:00
rm -rf ~/.vim* ~/.config/vim
2020-10-17 03:18:31 +02:00
mkdir -p ~/.config/vim
2016-12-19 17:06:38 +01:00
# installing
2020-10-17 03:16:49 +02:00
ln -sf ~/.dotfiles/vim/autoload ~/.config/vim/
ln -sf ~/.doftiles/vim/vimrc ~/.vimrc
2012-11-21 16:25:02 +01:00
2016-12-19 17:06:38 +01:00
## .gitignore
# cleaning
rm -rf ~/.gitignore
# installing
ln -sf ~/.dotfiles/conf/gitignore ~/.gitignore
git config --global core.excludesfile ~/.gitignore
2013-08-19 11:42:09 +02:00
## .fdignore
# cleaning
rm -rf ~/.fdignore
# installing
ln -sf ~/.dotfiles/conf/fdignore ~/.fdignore
2016-12-19 17:06:38 +01:00
## tmux
# cleaning
rm -rf ~/.tmux.conf
# installing
2020-02-05 16:46:04 +01:00
ln -sf ~/.dotfiles/conf/tmux.conf ~/.tmux.conf
2016-06-16 17:26:43 +02:00
2019-07-27 11:21:58 +02:00
## zsh
2016-12-19 17:06:38 +01:00
# cleaning
2020-10-05 12:21:53 +02:00
rm -rf ~/.zsh ~/.zshrc ~/.zsh_history ~/.zsh_sessions ~/.zcompdump* ~/.config/zsh*
2020-10-05 12:14:33 +02:00
mkdir -p ~/.config/zsh/caches ~/.config/zsh/plugins ~/.config/zsh/themes
2020-01-10 15:16:44 +01:00
# dependiences
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-08-09 23:44:31 +02:00
# installing
2020-01-10 16:11:15 +01:00
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc
2019-07-27 11:21:58 +02:00
touch ~/.zshrc.local