ohmyzsh/plugins/toolbox/toolbox.plugin.zsh

13 lines
310 B
Bash
Raw Normal View History

function toolbox_prompt_info() {
[[ -f /run/.toolboxenv ]] && echo "⬢"
}
function toolbox_prompt_name() {
2024-08-02 17:00:55 +02:00
[[ -f /run/.containerenv ]] || return
local _to_print="$(cat /run/.containerenv | awk -F\" '/name/ { print$2 }')"
echo ${_to_print:gs/%/%%}
}
alias tbe="toolbox enter"
alias tbr="toolbox run"