Files
dotfiles/zsh/zsh_functions
FaultyBranches 089ba53e8b feat: Adding LSP configs for ansiblels, arduino_language_server,
marksman. Adding documentation for LSP configs. Removing Mason config
and the reference to nvim-lspconfig.
2026-08-18 19:55:33 -05:00

22 lines
613 B
Plaintext

### Custom functions
# Timing function for checking zsh load speed
function timezsh() {
for _ 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 "{}" \;
# }
function path() {
echo -e "${PATH//:/\\n}"
}