Skip to content

Instantly share code, notes, and snippets.

@pvdb
Last active February 12, 2024 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvdb/49626ece85ab06131a27891dd30b3655 to your computer and use it in GitHub Desktop.
Save pvdb/49626ece85ab06131a27891dd30b3655 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# INSTALLATION
#
# ln -s ${PWD}/pack-recurse $(brew --prefix)/bin/
# sudo ln -s ${PWD}/pack-recurse /usr/local/bin/
#
find "${HOME}/.vim/pack" -mindepth 2 -maxdepth 2 -type d \( -name start -or -name opt \) | while read -r pack_dir; do
# pack_path=$(dirname "${pack_dir}");
>&2 printf "\033[7m$ (cd %s; %s;)\033[0m\n" "${pack_dir}" "$*";
(cd "${pack_dir}" || exit; "$@";);
done
# That's all Folks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment