.PHONY: zsh update-zsh tmux update-tmux nvim update-nvim zsh: @for file in zsh/.[!.]*; do \ file=$${file#zsh/}; \ [ -f "$$HOME/$$file" ] && mv "$$HOME/$$file" "$$HOME/$$file.bak"; \ done && cp -r zsh/.[!.]* ~/ && echo "zsh files copied to home directory" || echo "zsh files not copied to home directory" update-zsh: @for file in zsh/.[!.]*; do \ base=$$(basename $$file); \ if [ -f "$$HOME/$$base" ]; then \ cp -v "$$HOME/$$base" "$$file"; \ fi \ done && echo "zsh files updated from home directory" || echo "zsh files not updated from home directory" tmux: @if [ -f "$$HOME/.tmux.conf" ]; then \ mv "$$HOME/.tmux.conf" "$$HOME/.tmux.conf.bak"; \ cp tmux/.tmux.conf "$$HOME/.tmux.conf"; \ echo ".tmux.conf copied to home directory"; \ else \ echo ".tmux.conf not found in home directory"; \ fi update-tmux: @if [ -f "$$HOME/.tmux.conf" ]; then \ cp "$$HOME/.tmux.conf" tmux/.tmux.conf; \ fi @echo "tmux files updated from home directory" nvim: @mkdir -p "$$HOME/.config/nvim" && \ mv -f neovim/* "$$HOME/.config/nvim/" && \ echo "All files and folders from neovim have been moved to ~/.config/nvim" update-nvim: @mkdir -p neovim && \ cp -a "$$HOME/.config/nvim/." neovim/ && \ echo "All files and folders from ~/.config/nvim have been backed up to neovim/"