mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-02-13 21:11:13 +01:00
feat(avd): add numbers to AVDs list
This commit is contained in:
parent
b536924ac6
commit
8aa3dfc5fe
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ function find_emulator() {
|
|||
function avds() {
|
||||
local emulator_path
|
||||
emulator_path=$(find_emulator)
|
||||
eval "$emulator_path -list-avds"
|
||||
|
||||
# Print all AVDs and prepend each output line with a number, starting at 1.
|
||||
eval "$emulator_path -list-avds" | grep -n '^'
|
||||
}
|
||||
|
||||
function avd() {
|
||||
|
|
Loading…
Add table
Reference in a new issue