Tools

python -m translate_shell.tools.po

A command line interface of github action.

python -m translate_shell.tools.generate_prompt

A tool to generate a prompt for:

lftp

install -d ~/.config/lftp/lftp
python -m translate_shell.tools.generate_prompt > ~/.config/lftp/lftp/rc
echo 'source ~/.config/lftp/lftp/rc' >> ~/.config/lftp/rc

lftp

gdb

touch ~/.config/gdb/gdbinit
install -d ~/.config/gdb/gdb
python -m translate_shell.tools.generate_prompt \
    --format='set extended-prompt {text}' \
    --prompt-string="\n(gdb) " \
    --section WHITE BLUE ' \w' \
    --section WHITE BLACK '󰊕 \f' \
    --section BLACK YELLOW ' \t ' >> ~/.config/gdb/gdb/gdbinit
echo 'source ~/.config/gdb/gdb/gdbinit' >> ~/.config/gdb/gdbinit

gdb

python -m translate_shell.tools.repl

Enter a beautiful REPL for python. Or add the following code to your $PYTHONSTARTUP:

from translate_shell.tools.repl.main import interact

interact()

python