0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-17 04:16:52 +02:00
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"