Migrate from ~/.config/local to ~/.local/settings.
This commit is contained in:
parent
4dc2b58f6a
commit
ee45430c00
5 changed files with 29 additions and 21 deletions
34
install.sh
34
install.sh
|
@ -1,27 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
# cleaning
|
||||
rm -rf ~/.bash* ~/.profile
|
||||
rm -rf ~/.dotfiles ~/.local/dotfiles ~/.local/repos/dotfiles
|
||||
rm -rf ~/.cache ~/.config/_cache ~/.config/fd ~/.config/git/ignore ~/.config/nvim ~/.config/tmux ~/.config/vim ~/.config/zsh ~/.zshenv
|
||||
rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~/.tmux.conf ~/.vim* ~/.zcomp* ~/.zsh*
|
||||
|
||||
# repo + preparations
|
||||
mkdir -p ~/.config/git ~/.config/local ~/.local/repos
|
||||
# prepare repository
|
||||
rm -rf ~/.local/repos/dotfiles
|
||||
mkdir -p ~/.local/repos
|
||||
git clone --recurse https://git.insomniac.pl/ftpd/dotfiles ~/.local/repos/dotfiles
|
||||
|
||||
## neovim
|
||||
ln -sf ~/.local/repos/dotfiles/nvim ~/.config/
|
||||
touch ~/.config/local/init.vim
|
||||
# clean + prepare local dirs
|
||||
rm -rf ~/.cache ~/.config/_cache ~/.config/vim ~/.config/zsh
|
||||
rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~/.tmux.conf ~/.vim* ~/.zcomp* ~/.zsh*
|
||||
mkdir -p ~/.config ~/.local/settings
|
||||
|
||||
## .gitignore
|
||||
## neovim
|
||||
rm -rf ~/.config/nvim
|
||||
ln -sf ~/.local/repos/dotfiles/nvim ~/.config/
|
||||
touch ~/.local/settings/init.vim
|
||||
|
||||
## git
|
||||
mkdir -p ~/.config/git
|
||||
rm -rf ~/.config/git/ignore
|
||||
ln -sf ~/.local/repos/dotfiles/git/ignore ~/.config/git/ignore
|
||||
|
||||
## fdignore
|
||||
rm -rf ~/.config/fd
|
||||
ln -sf ~/.local/repos/dotfiles/fd ~/.config/
|
||||
touch ~/.config/local/fd
|
||||
touch ~/.local/settings/fd
|
||||
|
||||
## tmux
|
||||
rm -rf ~/.config/tmux
|
||||
ln -sf ~/.local/repos/dotfiles/tmux ~/.config/
|
||||
|
||||
## zsh
|
||||
|
@ -33,4 +38,7 @@ case $(uname -s) in
|
|||
esac
|
||||
echo "export XDG_CONFIG_HOME=$HOME/.config" >> $HOME/.zshenv
|
||||
echo "export ZDOTDIR=$HOME/.config/zsh" >> $HOME/.zshenv
|
||||
rm -rf ~/.bash* ~/.profile
|
||||
rm -rf ~/.
|
||||
ln -sf ~/.local/repos/dotfiles/zsh ~/.config/
|
||||
touch ~/.local/settings/zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue