Fix invalid path for dotfiles symbolic links

This commit is contained in:
MorganGeek 2020-07-15 22:56:25 +02:00
parent 29f4e5ecb1
commit 4e7c787e8d

View File

@ -1,44 +1,44 @@
#!/usr/bin/env bash
echo "Creating symbolic links"
ln -snf "$HOME/dotfiles/dot_profile" "$HOME/.profile"
ln -snf "$HOME/Code/dotfiles/dot_profile" "$HOME/.profile"
ln -snf "$HOME/.local/share/chezmoi/" "$HOME/dotfiles"
ln -snf "$HOME/dotfiles/Gemfile" "$HOME/Gemfile"
ln -snf "$HOME/dotfiles/README.md" "$HOME/README.md"
ln -snf "$HOME/dotfiles/dot_bash_profile" "$HOME/.bash_profile"
ln -snf "$HOME/dotfiles/dot_gitconfig" "$HOME/.gitconfig"
ln -snf "$HOME/dotfiles/dot_macos" "$HOME/.macos"
ln -snf "$HOME/dotfiles/dot_scripts" "$HOME/.scripts"
ln -snf "$HOME/dotfiles/dot_scripts/checkci.sh" /usr/local/bin/checkci
ln -snf "$HOME/dotfiles/dot_scripts/pre-commit-verify-committer.sh" /usr/local/bin/pre-commit-verify-committer
ln -snf "$HOME/dotfiles/dot_vimrc" "$HOME/.vimrc"
ln -snf "$HOME/Code/dotfiles/Gemfile" "$HOME/Gemfile"
ln -snf "$HOME/Code/dotfiles/README.md" "$HOME/README.md"
ln -snf "$HOME/Code/dotfiles/dot_bash_profile" "$HOME/.bash_profile"
ln -snf "$HOME/Code/dotfiles/dot_gitconfig" "$HOME/.gitconfig"
ln -snf "$HOME/Code/dotfiles/dot_macos" "$HOME/.macos"
ln -snf "$HOME/Code/dotfiles/dot_scripts" "$HOME/.scripts"
ln -snf "$HOME/Code/dotfiles/dot_scripts/checkci.sh" /usr/local/bin/checkci
ln -snf "$HOME/Code/dotfiles/dot_scripts/pre-commit-verify-committer.sh" /usr/local/bin/pre-commit-verify-committer
ln -snf "$HOME/Code/dotfiles/dot_vimrc" "$HOME/.vimrc"
# custom linters
ln -snf "$HOME/dotfiles/dot_vim/ale_linters" "$HOME/.vim/ale_linters"
ln -snf "$HOME/dotfiles/dot_aliases" "$HOME/.aliases"
ln -snf "$HOME/dotfiles/dot_zsh_aliases" "$HOME/.zsh_aliases"
ln -snf "$HOME/dotfiles/dot_zsh_functions" "$HOME/.zsh_functions"
ln -snf "$HOME/dotfiles/dot_zshrc" "$HOME/.zshrc"
ln -snf "$HOME/dotfiles/dot_zshrc.pre-oh-my-zsh" "$HOME/.zshrc.pre-oh-my-zsh"
ln -snf "$HOME/dotfiles/private_dot_ssh/config" "$HOME/.ssh/config"
ln -snf "$HOME/dotfiles/requirements.txt" "$HOME/requirements.txt"
ln -snf "$HOME/dotfiles/dot_surfraw.conf" "$HOME/.surfraw.conf"
ln -snf "$HOME/dotfiles/private_dot_3llo/config.sh" "$HOME/.3llo_config"
ln -snf "$HOME/dotfiles/dot_ansiweatherrc" "$HOME/.ansiweatherrc"
ln -snf "$HOME/dotfiles/dot_p10k.zsh" "$HOME/.p10k.zsh"
ln -snf "$HOME/dotfiles/dot_git-template" "$HOME/.git-template"
ln -snf "$HOME/dotfiles/private_dot_newsboat" "$HOME/.newsboat"
ln -snf "$HOME/dotfiles/private_dot_config/Code" "$HOME/.config/Code"
ln -snf "$HOME/dotfiles/private_dot_config/neofetch" "$HOME/.config/neofetch"
ln -snf "$HOME/dotfiles/private_dot_config/gh" "$HOME/.config/gh"
ln -snf "$HOME/dotfiles/private_dot_config/htop" "$HOME/.config/htop"
ln -snf "$HOME/dotfiles/private_dot_config/bashtop" "$HOME/.config/bashtop"
ln -snf "$HOME/dotfiles/private_dot_config/wtf" "$HOME/.config/wtf"
ln -snf "$HOME/dotfiles/private_dot_config/yamllint" "$HOME/.config/yamllint"
ln -snf "$HOME/dotfiles/dot_git-template/.pre-commit-config.yaml" "$HOME/dotfiles/.pre-commit-config.yaml"
ln -snf "$HOME/Code/dotfiles/dot_vim/ale_linters" "$HOME/.vim/ale_linters"
ln -snf "$HOME/Code/dotfiles/dot_aliases" "$HOME/.aliases"
ln -snf "$HOME/Code/dotfiles/dot_zsh_aliases" "$HOME/.zsh_aliases"
ln -snf "$HOME/Code/dotfiles/dot_zsh_functions" "$HOME/.zsh_functions"
ln -snf "$HOME/Code/dotfiles/dot_zshrc" "$HOME/.zshrc"
ln -snf "$HOME/Code/dotfiles/dot_zshrc.pre-oh-my-zsh" "$HOME/.zshrc.pre-oh-my-zsh"
ln -snf "$HOME/Code/dotfiles/private_dot_ssh/config" "$HOME/.ssh/config"
ln -snf "$HOME/Code/dotfiles/requirements.txt" "$HOME/requirements.txt"
ln -snf "$HOME/Code/dotfiles/dot_surfraw.conf" "$HOME/.surfraw.conf"
ln -snf "$HOME/Code/dotfiles/private_dot_3llo/config.sh" "$HOME/.3llo_config"
ln -snf "$HOME/Code/dotfiles/dot_ansiweatherrc" "$HOME/.ansiweatherrc"
ln -snf "$HOME/Code/dotfiles/dot_p10k.zsh" "$HOME/.p10k.zsh"
ln -snf "$HOME/Code/dotfiles/dot_git-template" "$HOME/.git-template"
ln -snf "$HOME/Code/dotfiles/private_dot_newsboat" "$HOME/.newsboat"
ln -snf "$HOME/Code/dotfiles/private_dot_config/Code" "$HOME/.config/Code"
ln -snf "$HOME/Code/dotfiles/private_dot_config/neofetch" "$HOME/.config/neofetch"
ln -snf "$HOME/Code/dotfiles/private_dot_config/gh" "$HOME/.config/gh"
ln -snf "$HOME/Code/dotfiles/private_dot_config/htop" "$HOME/.config/htop"
ln -snf "$HOME/Code/dotfiles/private_dot_config/bashtop" "$HOME/.config/bashtop"
ln -snf "$HOME/Code/dotfiles/private_dot_config/wtf" "$HOME/.config/wtf"
ln -snf "$HOME/Code/dotfiles/private_dot_config/yamllint" "$HOME/.config/yamllint"
ln -snf "$HOME/Code/dotfiles/dot_git-template/.pre-commit-config.yaml" "$HOME/dotfiles/.pre-commit-config.yaml"
# Other symbolic links + Install Docker Desktop for Mac
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) Adding symbolic links"
ln -snf "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "$HOME/Library/Application Support/Code/User/snippets"