0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

feat(toolbox): alias for toolbox enter

This commit is contained in:
Ilya Maximov 2022-05-08 17:29:02 +02:00 committed by Marc Cornellà
parent 0866f4daf4
commit ed03e7127f
2 changed files with 8 additions and 0 deletions

View file

@ -17,3 +17,9 @@ You can use it by adding `$(toolbox_prompt_info)` to your `PROMPT` or `RPROMPT`
```zsh
RPROMPT='$(toolbox_prompt_info)'
```
## Aliases
| Alias | Command | Description |
|-------|----------------------|----------------------------------------|
| tb | `toolbox enter` | Enters the toolbox environment |

View file

@ -1,3 +1,5 @@
function toolbox_prompt_info() {
[[ -f /run/.toolboxenv ]] && echo "⬢"
}
alias tb="toolbox enter"