Last active
January 24, 2025 16:55
-
-
Save jcausey-astate/80a38b9c997695c654a9636fb6e77070 to your computer and use it in GitHub Desktop.
uvi is a Bash function to quickly initialize a Python `uv` project without workspace or hello world script. Add it to .bashrc or .profile, or similar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Quick `uv init` without src directory, "README.md", or "hello.py". | |
# Project name is optional (default to directory if not provided). | |
function uvi() { | |
if [ ! -z "$1" ] ; then | |
NAME="--name=$1" | |
fi | |
uv init --app --no-readme --no-workspace ${NAME} && rm hello.py | |
} | |
export -f uvi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment