Custom prompts for Python.
$ curl -L https://raw.githubusercontent.com/Robert-96/py-prompts/main/install.sh | sh
$ py-prompts list
$ py-prompts set <prompt_name>
Create a new python file in the ~/.py-prompts/prompts
directory.
You can use this example as a starting point:
import sys
class CustomPromptPS1(object):
def __str__(self):
return ">>> "
class CustomPromptPS1(object):
def __str__(self):
return "... "
sys.ps1 = CustomPromptPS1()
sys.ps2 = CustomPromptPS1()
This project is licensed under the MIT License.