From 6faf8a1641fcf9ab0ce14c30d6c3b65e9de85390 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Tue, 8 Jul 2025 11:56:57 -0500 Subject: [PATCH] feat: - Grouping files in the deploy script by purpose. - Adding the npmrc file --- deploy.sh | 21 ++++++++++++++------- npmrc | 2 ++ 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 npmrc diff --git a/deploy.sh b/deploy.sh index 832cf11..b3e75b2 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,6 +4,11 @@ then ln -fs $PWD/zshrc $HOME/.zshrc fi +if [ ! -L $HOME/.oh-my-zsh/custom/themes ] +then + ln -fs $PWD/fb-custom.zsh-theme $HOME/.oh-my-zsh/custom/themes/fb-custom.zsh-theme +fi + # Neovim mkdir -p $HOME/.config/nvim if [ ! -L $HOME/.config/nvim/init.lua ] @@ -16,24 +21,26 @@ then ln -fs $PWD/nvim/lua $HOME/.config/nvim/lua fi +if [ ! -L $HOME/.config/nvim/snippets ] +then + ln -fs $PWD/nvim/snippets $HOME/.config/nvim/snippets +fi + # Tmux if [ ! -L $HOME/.tmux.conf ] then ln -fs $PWD/tmux.conf $HOME/.tmux.conf fi +# Wezterm terminal emulator if [ ! -L $HOME/.config/wezterm/wezterm.lua ] then mkdir -p $HOME/.config/wezterm ln -fs $PWD/wezterm.lua $HOME/.config/wezterm/wezterm.lua fi -if [ ! -L $HOME/.config/nvim/snippets ] +# Nodejs +if [ ! -L $HOME/.npmrc ] then - ln -fs $PWD/nvim/snippets $HOME/.config/nvim/snippets -fi - -if [ ! -L $HOME/.oh-my-zsh/custom/themes ] -then - ln -fs $PWD/fb-custom.zsh-theme $HOME/.oh-my-zsh/custom/themes/fb-custom.zsh-theme + ln -fs $PWD/npmrc $HOME/.npmrc fi diff --git a/npmrc b/npmrc new file mode 100644 index 0000000..0353dfc --- /dev/null +++ b/npmrc @@ -0,0 +1,2 @@ +# Set the prefix to the user directory for "global" installs as non-root +prefix=~/.local/