Skip to content

Instantly share code, notes, and snippets.

@qoomon
Created February 7, 2023 08:25
Show Gist options
  • Save qoomon/85caa608da66633286f828c1c8129d0b to your computer and use it in GitHub Desktop.
Save qoomon/85caa608da66633286f828c1c8129d0b to your computer and use it in GitHub Desktop.
ZSH Plugin File Template
#!/bin/zsh
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
echo "${${0:A}/%.plugin.zsh/.zsh}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment