feat: Adding a custom zsh function for running rsync "moves"

Adding the capabilities and on_attach to all current LSP options in
Nvim.
This commit is contained in:
2025-07-07 06:43:52 -05:00
parent 246ba3d490
commit 3cb82e1982
2 changed files with 15 additions and 0 deletions

7
zshrc
View File

@@ -104,6 +104,13 @@ for file in $include_files; do
source $file
done
# Custom rsync move function that also removes empty directories that have their contents removed
# NOTE: This will delete *any* empty directories in the CWD
rmv() {
rsync -avzhP --remove-source-files --ignore-existing "${@:1:$#-1}" "${@:$#}" && \
find ./* -depth -type d -empty -exec rmdir "{}" \;
}
# NVM required config
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm