mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-02-17 06:40:57 +01:00
fix(avd): fix starting n-th AVD by removing preceding number
This commit is contained in:
@@ -65,7 +65,8 @@ function avd() {
|
|||||||
return
|
return
|
||||||
fi
|
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"
|
echo "Starting emulator: $avd_name"
|
||||||
|
|
||||||
emulator_path=$(find_emulator)
|
emulator_path=$(find_emulator)
|
||||||
|
|||||||
Reference in New Issue
Block a user