dotfiles/deploy.sh
Joshua Finch 6faf8a1641 feat:
- Grouping files in the deploy script by purpose.
- Adding the npmrc file
2025-07-08 11:56:57 -05:00

47 lines
901 B
Bash
Executable File

#Zsh
if [ ! -L $HOME/.zshrc ]
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 ]
then
ln -fs $PWD/nvim/init.lua $HOME/.config/nvim/init.lua
fi
if [ ! -L $HOME/.config/nvim/lua ]
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
# Nodejs
if [ ! -L $HOME/.npmrc ]
then
ln -fs $PWD/npmrc $HOME/.npmrc
fi