[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
0

Configure Feed

Select the types of activity you want to include in your feed.

uv shebang

author
Morgan
committer
GitHub
date (Mar 11, 2025, 11:56 PM +0100) commit daa92a41 parent ce946f8f
+5 -8
+5 -8
readme.md
··· 1 1 # Scripts 2 2 3 - Isolated files that can be run directly, assuming they are given execution permissions (`chmod +x script_path` and visible in the PATH) 3 + Isolated files that can be run directly once they are given execution permissions with `chmod +x script_path` and are added to the PATH 4 4 5 5 ## Languages 6 6 7 - ``` 8 - zsh, swift, python3 9 - ``` 10 - 11 7 ```sh 12 8 #! /usr/bin/env zsh 13 - #! /usr/bin/env swift 9 + #! /usr/bin/env -S uv run --script 14 10 #! /usr/bin/env python3 11 + #! /usr/bin/env swift 15 12 ``` 16 13 17 14 Binary files are compiled for apple silicon from the adjacent script 18 15 19 16 ``` sh 20 - cool-thing # binary 21 - cool-thing.swift # original script 17 + swift-tool # binary 18 + swift-tool.swift # script 22 19 ``` 23 20 24 21