Go to file
2024-08-07 13:46:01 -07:00
code_to_prompt [add] Init 2024-08-07 13:46:01 -07:00
.gitignore [add] Init 2024-08-07 13:46:01 -07:00
code_to_prompt.sh [add] Init 2024-08-07 13:46:01 -07:00
poetry.lock [add] Init 2024-08-07 13:46:01 -07:00
pyproject.toml [add] Init 2024-08-07 13:46:01 -07:00
README.md [add] Init 2024-08-07 13:46:01 -07:00

Install

First, make sure ~/bin exists and is in your PATH

mkdir -p ~/bin
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc  # or ~/.zshrc if you use zsh
source ~/.bashrc  # or source ~/.zshrc

Create a symlink to the wrapper script

ln -s /full/path/to/your/project/code_to_prompt.sh ~/bin/code_to_prompt

Now you can run your script from anywhere by simply typing:

code_to_prompt --path /path/to/process --ignore custom_folder