bootstrap: invert src and dest of DOTFILES for readability

This commit is contained in:
Fernando Schauenburg 2021-08-09 00:26:11 +02:00
parent 95fef2c20a
commit 7c1c371dc9

View file

@ -53,25 +53,25 @@ EOF
) )
DOTFILES=$(cat <<EOF DOTFILES=$(cat <<EOF
files/alacritty.yml ${XDG_CONFIG_HOME}/alacritty/alacritty.yml ${XDG_CONFIG_HOME}/alacritty/alacritty.yml files/alacritty.yml
files/gitconfig ${XDG_CONFIG_HOME}/git/config ${XDG_CONFIG_HOME}/git/config files/gitconfig
files/gitignore ${XDG_CONFIG_HOME}/git/ignore ${XDG_CONFIG_HOME}/git/ignore files/gitignore
files/inputrc ${XDG_CONFIG_HOME}/readline/inputrc ${XDG_CONFIG_HOME}/readline/inputrc files/inputrc
files/minttyrc ${XDG_CONFIG_HOME}/mintty/config ${XDG_CONFIG_HOME}/mintty/config files/minttyrc
files/plug.vim ${XDG_CONFIG_HOME}/nvim/autoload/plug.vim ${XDG_CONFIG_HOME}/nvim/autoload/plug.vim files/plug.vim
files/python-startup.py ${XDG_CONFIG_HOME}/python/startup.py ${XDG_CONFIG_HOME}/python/startup.py files/python-startup.py
files/tmux.conf ${XDG_CONFIG_HOME}/tmux/tmux.conf ${XDG_CONFIG_HOME}/tmux/tmux.conf files/tmux.conf
files/init.vim ${XDG_CONFIG_HOME}/nvim/init.vim ${XDG_CONFIG_HOME}/nvim/init.vim files/init.vim
files/aliases.sh ${XDG_CONFIG_HOME}/shell/aliases.sh ${XDG_CONFIG_HOME}/shell/aliases.sh files/aliases.sh
files/profile.sh ${XDG_CONFIG_HOME}/shell/profile.sh ${XDG_CONFIG_HOME}/shell/profile.sh files/profile.sh
files/zshrc ${XDG_CONFIG_HOME}/zsh/.zshrc ${XDG_CONFIG_HOME}/zsh/.zshrc files/zshrc
files/xcompose ${HOME}/.XCompose ${HOME}/.XCompose files/xcompose
files/bashrc ${HOME}/.bashrc ${HOME}/.bashrc files/bashrc
files/bash_profile ${HOME}/.bash_profile ${HOME}/.bash_profile files/bash_profile
files/jupyter_custom.js ${HOME}/.jupyter/custom/custom.js ${HOME}/.jupyter/custom/custom.js files/jupyter_custom.js
files/jupyter_notebook.json ${HOME}/.jupyter/nbconfig/notebook.json ${HOME}/.jupyter/nbconfig/notebook.json files/jupyter_notebook.json
files/profile.sh ${HOME}/.zshenv ${HOME}/.zshenv files/profile.sh
files/ssh_config ${HOME}/.ssh/config ${HOME}/.ssh/config files/ssh_config
EOF EOF
) )
@ -169,7 +169,7 @@ task_ensure_directories() {
task_link_dotfiles() { task_link_dotfiles() {
heading "Link dotfiles" heading "Link dotfiles"
echo "$DOTFILES" | while read -r dest src; do echo "$DOTFILES" | while read -r src dest; do
file_link "$src" "$DOTFILES_DIR/$dest" file_link "$src" "$DOTFILES_DIR/$dest"
done done
} }