1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 09:40:09 +00:00

fix(avd): fix starting n-th AVD by removing preceding number

This commit is contained in:
Andrzej Zabost 2021-08-10 19:42:52 +02:00
parent 6579eb94dd
commit 1cb99a21ac

View file

@ -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)