469 B
469 B
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