From 4e7c787e8d29a0b8290dff2fd28dab26b959f44a Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Wed, 15 Jul 2020 22:56:25 +0200 Subject: [PATCH] Fix invalid path for dotfiles symbolic links --- dot_scripts/symbolic_links.sh | 80 +++++++++++++++++------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/dot_scripts/symbolic_links.sh b/dot_scripts/symbolic_links.sh index 5d7c06f..2661b0f 100755 --- a/dot_scripts/symbolic_links.sh +++ b/dot_scripts/symbolic_links.sh @@ -1,49 +1,49 @@ #!/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) - 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" - ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" "$HOME/.mackup.cfg" - echo "(Mac OS X) Installing Docker" - ~/.scripts/install_docker_for_mac.sh - ;; +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" + ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" "$HOME/.mackup.cfg" + echo "(Mac OS X) Installing Docker" + ~/.scripts/install_docker_for_mac.sh + ;; esac