Skip to content

Instantly share code, notes, and snippets.

@wwmoraes
Last active July 7, 2025 21:34
Show Gist options
  • Select an option

  • Save wwmoraes/adb2012583db995470a8d4a83b6771b8 to your computer and use it in GitHub Desktop.

Select an option

Save wwmoraes/adb2012583db995470a8d4a83b6771b8 to your computer and use it in GitHub Desktop.
nap snippet manager store
package main
func main() {
}
git rev-parse --verify HEAD 2> /dev/null || echo "HEAD"
git describe --tags 2> /dev/null | tr -d '^v' || echo "0.0.0"
exec env \
--unset __fish_home_manager_config_sourced \
--unset __HM_SESS_VARS_SOURCED \
--unset __NIX_DARWIN_SET_ENVIRONMENT_DONE \
fish
[{"tags":[],"folder":"code","date":"2022-11-12T15:04:05Z","favorite":false,"title":"main","file":"code-main.go","language":"go"},{"tags":[],"folder":"git","date":"2025-07-07T23:27:44.365553+02:00","favorite":false,"title":"current-revision","file":"git-current-revision.sh","language":"sh"},{"tags":[],"folder":"git","date":"2025-07-07T23:25:49.082361+02:00","favorite":false,"title":"current-tag","file":"git-current-tag.sh","language":"sh"},{"tags":[],"folder":"nix","date":"2025-07-07T23:29:41.028212+02:00","favorite":false,"title":"env-reload","file":"nix-env-reload.fish","language":"fish"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment