*: Move third-party plugins into .local/share/

Move all submodules that were under .config/ into .local/share/ (alias
XDG_DATA_HOME). I got convinced that they feel out of place in .config/.

Instead of updating the paths from which they are sourced (e.g.
`TMUX_PLUGIN_MANAGER_PATH` or `packpath`), keep a symlink in the old
location that points to the new one. This has the benefit that
everything related to one program remains mostly accessible from the
same place instead of spreading everything out.

I am still unsure if I really like the new location as I affiliate user
**data** more with something that has to be backed up as it is
non-recreatable. And moving them out of .config/ had the reasoning that
they are not my config files but rather data from the internet that
could be retrieved when deleting. But using XDG_CACHE_HOME seems
unreasonable as well.
We'll see.

Move the fzf-repo from ./local/bin/ to .local/share/.

Update all relative symlinks' (e.g. fzf) targets.
This commit is contained in:
2022-05-20 12:54:46 +02:00
parent 2e6052cd3c
commit 40416ebd9c
66 changed files with 44 additions and 41 deletions

1
.config/tmux/plugins Symbolic link
View File

@@ -0,0 +1 @@
../../.local/share/tmux/plugins/

1
.config/vim/pack Symbolic link
View File

@@ -0,0 +1 @@
../../.local/share/vim/pack/

View File

@@ -1 +0,0 @@
../../../../../.local/bin/fzf-repo/

1
.config/zsh/plugins Symbolic link
View File

@@ -0,0 +1 @@
../../.local/share/zsh/plugins/

View File

@@ -1 +0,0 @@
../../../.local/bin/fzf-repo/

68
.gitmodules vendored
View File

@@ -8,112 +8,112 @@
# bin # bin
[submodule "fzf"] [submodule "fzf"]
path = .local/bin/fzf-repo path = .local/share/fzf-repo
url = https://github.com/junegunn/fzf url = https://github.com/junegunn/fzf
# git # git
[submodule "diff-so-fancy"] [submodule "diff-so-fancy"]
path = .config/git/diff-so-fancy path = .local/share/git/plugins/diff-so-fancy
url = https://github.com/so-fancy/diff-so-fancy url = https://github.com/so-fancy/diff-so-fancy
[submodule "git-filter-repo"] [submodule "git-filter-repo"]
path = .config/git/git-filter-repo path = .local/share/git/plugins/git-filter-repo
url = https://github.com/newren/git-filter-repo url = https://github.com/newren/git-filter-repo
# tmux # tmux
[submodule "tmux-continuum"] [submodule "tmux-continuum"]
path = .config/tmux/plugins/tmux-continuum path = .local/share/tmux/plugins/tmux-continuum
url = https://github.com/tmux-plugins/tmux-continuum url = https://github.com/tmux-plugins/tmux-continuum
[submodule "tmux-prefix-highlight"] [submodule "tmux-prefix-highlight"]
path = .config/tmux/plugins/tmux-prefix-highlight path = .local/share/tmux/plugins/tmux-prefix-highlight
url = https://github.com/tmux-plugins/tmux-prefix-highlight url = https://github.com/tmux-plugins/tmux-prefix-highlight
[submodule "tmux-resurrect"] [submodule "tmux-resurrect"]
path = .config/tmux/plugins/tmux-resurrect path = .local/share/tmux/plugins/tmux-resurrect
url = https://github.com/tmux-plugins/tmux-resurrect url = https://github.com/tmux-plugins/tmux-resurrect
[submodule "tmux-sensible"] [submodule "tmux-sensible"]
path = .config/tmux/plugins/tmux-sensible path = .local/share/tmux/plugins/tmux-sensible
url = https://github.com/tmux-plugins/tmux-sensible url = https://github.com/tmux-plugins/tmux-sensible
[submodule "tmux-yank"] [submodule "tmux-yank"]
path = .config/tmux/plugins/tmux-yank path = .local/share/tmux/plugins/tmux-yank
url = https://github.com/tmux-plugins/tmux-yank url = https://github.com/tmux-plugins/tmux-yank
[submodule "tpm"] [submodule "tpm"]
path = .config/tmux/plugins/tpm path = .local/share/tmux/plugins/tpm
url = https://github.com/tmux-plugins/tpm url = https://github.com/tmux-plugins/tpm
[submodule "vim-tmux-navigator"] [submodule "vim-tmux-navigator"]
path = .config/tmux/plugins/vim-tmux-navigator path = .local/share/tmux/plugins/vim-tmux-navigator
url = https://github.com/christoomey/vim-tmux-navigator url = https://github.com/christoomey/vim-tmux-navigator
# vim # vim
[submodule "arm-syntax-vim"] [submodule "arm-syntax-vim"]
path = .config/vim/pack/plugins/opt/arm-syntax-vim path = .local/share/vim/pack/plugins/opt/arm-syntax-vim
url = https://github.com/ARM9/arm-syntax-vim url = https://github.com/ARM9/arm-syntax-vim
[submodule "coc.nvim"] [submodule "coc.nvim"]
path = .config/vim/pack/plugins/opt/coc.nvim path = .local/share/vim/pack/plugins/opt/coc.nvim
url = https://github.com/neoclide/coc.nvim url = https://github.com/neoclide/coc.nvim
[submodule "cocci-syntax"] [submodule "cocci-syntax"]
path = .config/vim/pack/plugins/opt/cocci-syntax path = .local/share/vim/pack/plugins/opt/cocci-syntax
url = https://github.com/ahf/cocci-syntax url = https://github.com/ahf/cocci-syntax
[submodule "Colorizer"] [submodule "Colorizer"]
path = .config/vim/pack/plugins/opt/Colorizer path = .local/share/vim/pack/plugins/opt/Colorizer
url = https://github.com/chrisbra/Colorizer url = https://github.com/chrisbra/Colorizer
[submodule "delimitMate"] [submodule "delimitMate"]
path = .config/vim/pack/plugins/opt/delimitMate path = .local/share/vim/pack/plugins/opt/delimitMate
url = https://github.com/Raimondi/delimitMate url = https://github.com/Raimondi/delimitMate
[submodule "fzf.vim"] [submodule "fzf.vim"]
path = .config/vim/pack/plugins/opt/fzf.vim path = .local/share/vim/pack/plugins/opt/fzf.vim
url = https://github.com/junegunn/fzf.vim url = https://github.com/junegunn/fzf.vim
[submodule "markdown-preview.nvim"] [submodule "markdown-preview.nvim"]
path = .config/vim/pack/plugins/opt/markdown-preview.nvim path = .local/share/vim/pack/plugins/opt/markdown-preview.nvim
url = https://github.com/iamcco/markdown-preview.nvim url = https://github.com/iamcco/markdown-preview.nvim
[submodule "onedark.vim"] [submodule "onedark.vim"]
path = .config/vim/pack/plugins/opt/onedark.vim path = .local/share/vim/pack/plugins/opt/onedark.vim
url = https://github.com/joshdick/onedark.vim url = https://github.com/joshdick/onedark.vim
[submodule "vimtex"] [submodule "vimtex"]
path = .config/vim/pack/plugins/opt/vimtex path = .local/share/vim/pack/plugins/opt/vimtex
url = https://github.com/lervag/vimtex url = https://github.com/lervag/vimtex
[submodule "vim-fugitive"] [submodule "vim-fugitive"]
path = .config/vim/pack/plugins/opt/vim-fugitive path = .local/share/vim/pack/plugins/opt/vim-fugitive
url = https://github.com/tpope/vim-fugitive url = https://github.com/tpope/vim-fugitive
[submodule "vim-gitgutter"] [submodule "vim-gitgutter"]
path = .config/vim/pack/plugins/opt/vim-gitgutter path = .local/share/vim/pack/plugins/opt/vim-gitgutter
url = https://github.com/airblade/vim-gitgutter url = https://github.com/airblade/vim-gitgutter
[submodule "vim-gutentags"] [submodule "vim-gutentags"]
path = .config/vim/pack/plugins/opt/vim-gutentags path = .local/share/vim/pack/plugins/opt/vim-gutentags
url = https://github.com/ludovicchabant/vim-gutentags url = https://github.com/ludovicchabant/vim-gutentags
[submodule "vim-lastplace"] [submodule "vim-lastplace"]
path = .config/vim/pack/plugins/opt/vim-lastplace path = .local/share/vim/pack/plugins/opt/vim-lastplace
url = https://github.com/farmergreg/vim-lastplace url = https://github.com/farmergreg/vim-lastplace
[submodule "vim-obsession"] [submodule "vim-obsession"]
path = .config/vim/pack/plugins/opt/vim-obsession path = .local/share/vim/pack/plugins/opt/vim-obsession
url = https://github.com/tpope/vim-obsession url = https://github.com/tpope/vim-obsession
[submodule "vim-sort-folds"] [submodule "vim-sort-folds"]
path = .config/vim/pack/plugins/opt/vim-sort-folds path = .local/share/vim/pack/plugins/opt/vim-sort-folds
url = https://github.com/obreitwi/vim-sort-folds url = https://github.com/obreitwi/vim-sort-folds
[submodule "vim-surround"] [submodule "vim-surround"]
path = .config/vim/pack/plugins/opt/vim-surround path = .local/share/vim/pack/plugins/opt/vim-surround
url = https://github.com/tpope/vim-surround url = https://github.com/tpope/vim-surround
[submodule "vim-syntax-extra"] [submodule "vim-syntax-extra"]
path = .config/vim/pack/plugins/opt/vim-syntax-extra path = .local/share/vim/pack/plugins/opt/vim-syntax-extra
url = https://github.com/justinmk/vim-syntax-extra url = https://github.com/justinmk/vim-syntax-extra
[submodule "vim-textobj-comment"] [submodule "vim-textobj-comment"]
path = .config/vim/pack/plugins/opt/vim-textobj-comment path = .local/share/vim/pack/plugins/opt/vim-textobj-comment
url = https://github.com/glts/vim-textobj-comment url = https://github.com/glts/vim-textobj-comment
[submodule "vim-textobj-user"] [submodule "vim-textobj-user"]
path = .config/vim/pack/plugins/opt/vim-textobj-user path = .local/share/vim/pack/plugins/opt/vim-textobj-user
url = https://github.com/kana/vim-textobj-user url = https://github.com/kana/vim-textobj-user
# zsh # zsh
[submodule "fzf-tab"] [submodule "fzf-tab"]
path = .config/zsh/plugins/fzf-tab path = .local/share/zsh/plugins/fzf-tab
url = https://github.com/Aloxaf/fzf-tab url = https://github.com/Aloxaf/fzf-tab
[submodule "powerlevel10k"] [submodule "powerlevel10k"]
path = .config/zsh/plugins/powerlevel10k path = .local/share/zsh/plugins/powerlevel10k
url = https://github.com/romkatv/powerlevel10k url = https://github.com/romkatv/powerlevel10k
[submodule "stderred"] [submodule "stderred"]
path = .config/zsh/plugins/stderred path = .local/share/zsh/plugins/stderred
url = https://github.com/sickill/stderred url = https://github.com/sickill/stderred
[submodule "zsh-autosuggestions"] [submodule "zsh-autosuggestions"]
path = .config/zsh/plugins/zsh-autosuggestions path = .local/share/zsh/plugins/zsh-autosuggestions
url = https://github.com/druckdev/zsh-autosuggestions url = https://github.com/druckdev/zsh-autosuggestions
[submodule "zsh-syntax-highlighting"] [submodule "zsh-syntax-highlighting"]
path = .config/zsh/plugins/zsh-syntax-highlighting path = .local/share/zsh/plugins/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting url = https://github.com/zsh-users/zsh-syntax-highlighting

View File

@@ -1 +1 @@
../../.config/git/diff-so-fancy/diff-so-fancy ../share/git/plugins/diff-so-fancy/diff-so-fancy

View File

@@ -1 +1 @@
fzf-repo/bin/fzf ../share/fzf-repo/bin/fzf

View File

@@ -1 +1 @@
../../../bin/fzf-repo/man/man1/fzf-tmux.1 ../../fzf-repo/man/man1/fzf-tmux.1

View File

@@ -1 +1 @@
../../../bin/fzf-repo/man/man1/fzf.1 ../../fzf-repo/man/man1/fzf.1

View File

@@ -0,0 +1 @@
../../../../fzf-repo/

View File

@@ -0,0 +1 @@
../../fzf-repo/

View File

@@ -20,7 +20,7 @@
stdout: true stdout: true
stderr: true stderr: true
- -
command: .local/bin/fzf-repo/install --bin command: .local/share/fzf-repo/install --bin
description: Pulling fzf binary description: Pulling fzf binary
stdout: true stdout: true
stderr: true stderr: true