Android : Rename default emulator to main.

This commit is contained in:
Dmitry Voronin 2024-01-24 22:17:40 +03:00
parent 2dd2a82468
commit 2d524a06ac
2 changed files with 4 additions and 3 deletions

View file

@ -1,10 +1,10 @@
# Start an Android emulator. # Start an Android emulator.
# Default name is `default`. # Default name is `main`.
# Usage: emulator [NAME] # Usage: emulator [NAME]
function emulator() { function emulator() {
local name="${1}" local name="${1}"
[[ "${name}" = "" ]] && name="default" [[ "${name}" = "" ]] && name="main"
${ANDROID_SDK_ROOT}/emulator/emulator -avd "${name}" &> /dev/null & disown ${ANDROID_SDK_ROOT}/emulator/emulator -avd "${name}" &> /dev/null & disown
} }

View file

@ -14,7 +14,7 @@ $ h <COMMAND>
Command|Description Command|Description
---|--- ---|---
`emulator [NAME]`|Start an Android emulator. Default name is `default`. `emulator [NAME]`|Start an Android emulator. Default name is `main`.
## Archive. ## Archive.
@ -259,6 +259,7 @@ Command|Description
`nix_unstable_small`|Switch to Small Unstable branch (for server). `nix_unstable_small`|Switch to Small Unstable branch (for server).
`nix_update`|Update system (rebuild). `nix_update`|Update system (rebuild).
`nix_upgrade`|Upgrade system. `nix_upgrade`|Upgrade system.
`nix_clean`|Free up root space.
## Notify. ## Notify.