mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
feat(toolbox): add function to show toolbox name
This commit is contained in:
parent
0f75203698
commit
421bf9b782
1 changed files with 5 additions and 0 deletions
|
|
@ -2,5 +2,10 @@ function toolbox_prompt_info() {
|
||||||
[[ -f /run/.toolboxenv ]] && echo "⬢"
|
[[ -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 tbe="toolbox enter"
|
||||||
alias tbr="toolbox run"
|
alias tbr="toolbox run"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue