ohmyzsh/plugins/toolbox/toolbox.plugin.zsh
SpeakinTelnet 2cb403e89f
feat(toolbox): add function to show toolbox name (#12594)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-08-02 16:37:00 +02:00

10 lines
252 B
Bash

function toolbox_prompt_info() {
[[ -f /run/.toolboxenv ]] && echo "⬢"
}
function toolbox_prompt_name() {
[[ -f /run/.containerenv ]] && cat /run/.containerenv | awk -F\" '/name/ { print$2 }'
}
alias tbe="toolbox enter"
alias tbr="toolbox run"