mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
fix(avd): fix starting n-th AVD by removing preceding number
This commit is contained in:
parent
6579eb94dd
commit
1cb99a21ac
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ function avd() {
|
|||
return
|
||||
fi
|
||||
|
||||
avd_name=$(avds | head -"$avd_number" | tail -1)
|
||||
# Print only the n-th AVD and remove the number prefix added by 'grep -n'
|
||||
avd_name=$(avds | head -"$avd_number" | tail -1 | sed -E 's/^[0-9]+://')
|
||||
echo "Starting emulator: $avd_name"
|
||||
|
||||
emulator_path=$(find_emulator)
|
||||
|
|
Loading…
Reference in a new issue