mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-02-14 21:30:58 +01:00
feat(avd): add numbers to AVDs list
This commit is contained in:
@@ -23,7 +23,9 @@ function find_emulator() {
|
|||||||
function avds() {
|
function avds() {
|
||||||
local emulator_path
|
local emulator_path
|
||||||
emulator_path=$(find_emulator)
|
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() {
|
function avd() {
|
||||||
|
|||||||
Reference in New Issue
Block a user