Tools¶
This module can be called by python -m.
PS1¶
REPL¶
Generate a powerlevel10k -like prompt for python.
This module can be called by python -m.
generate prompt by translate_shell.utils.section’s p10k_sections().
By default, it is for lftp.
See section cmd:prompt
of man 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
This module can be called by python -m.