Skip to content

Instantly share code, notes, and snippets.

@mattmc3
Created February 26, 2025 13:21
Show Gist options
  • Save mattmc3/f44ac7356ef71190cea54e56246f47ac to your computer and use it in GitHub Desktop.
Save mattmc3/f44ac7356ef71190cea54e56246f47ac to your computer and use it in GitHub Desktop.
Fish: Get directory of current script
#!/usr/bin/env fish
path resolve (status --current-filename)/..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment