feat(toolbox): add function to show toolbox name

This commit is contained in:
SpeakinTelnet 2024-08-02 09:23:19 -04:00
commit 421bf9b782

View file

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