mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-13 17:34:22 +08:00
feat(toolbox): add function to show toolbox name (#12594)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
1 parent
0f75203698
commit
2cb403e89f
2 files changed
+12
-5
No files matched your search
@@ -2,5 +2,9 @@ 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"
|
||||
Reference in new issue
Block a user