feat: Update to the zsh setup, moving functions and aliases to their own

files, changing up the plugins and settings to remove stale setups and
to reduce the loading time by nearly half
This commit is contained in:
2026-03-28 16:53:51 -05:00
parent a31d423095
commit 64868c6672
4 changed files with 39 additions and 70 deletions

18
zsh/zsh_functions Normal file
View File

@@ -0,0 +1,18 @@
### Custom functions
# Timing function for checking zsh load speed
function timezsh() {
shell=$SHELL
for i in $(seq 1 10)
do
ts=$(date +%s%N)
$SHELL -i -c exit
echo $((($(date +%s%N) - $ts)/1000000))ms
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
function rmv() {
rsync -avzhP --remove-source-files --ignore-existing "${@:1:$#-1}" "${@:$#}" && \
find ./* -depth -type d -empty -exec rmdir "{}" \;
}