Skip to content

Commit

Permalink
chore: update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Okabe-Junya committed Nov 5, 2024
1 parent 7d5de10 commit 2259632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function install() {
install_homebrew
install_oh_my_zsh
brew_bundle_install
initialize_symbolic_links

echo "Installation is complete!"
}
Expand Down
6 changes: 6 additions & 0 deletions install/symlink.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/usr/bin/env zsh

# config
if [ ! -d "${HOME}/.config" ]; then
mkdir "${HOME}/.config"
fi
ln -nfs "${HOME}/dotfiles/.config/git" "${HOME}/.config/git"
ln -nfs "${HOME}/dotfiles/.config/git/.gitconfig" "${HOME}/.gitconfig"
ln -nfs "${HOME}/dotfiles/.config/gh" "${HOME}/.config/gh"

# zshrc
if [ -f "${HOME}/.zshrc" ]; then
mv "${HOME}/.zshrc" "${HOME}/.zshrc.bak"
fi
ln -nfs "${HOME}/dotfiles/.zshrc" "${HOME}/.zshrc"

0 comments on commit 2259632

Please sign in to comment.