
Android Bash Completion
#Knowledge Base#Miscellaneous
A tool to replace query string values with a user-supplied value
Bash Completion Script for Android Tools - A Guide
This Bash completion script is specifically created for the command-line tools associated with android, adb, emulator, fastboot, and repo, which are part of the Google Android SDK.
To begin the installation process, make sure that bash-completion is already installed on your system. Many Linux distributions have it pre-installed and enabled. If it's not available, you can typically find it in your package repository. For instance, you can use the command "aptitude install bash-completion" to install it. If you are using Mac OS X, you can install bash-completion through Fink or MacPorts.
After ensuring bash-completion is installed, copy the "android" file from this directory into the /etc/bash_completion.d folder. On Mac OS X, this folder is usually located under "/sw/etc" or "/opt/local/etc". Once you have copied the file, restart your shell to apply the changes.
Note: If you encounter difficulties installing the bash-completion package, you can still use the android completion script by sourcing it directly from your bashrc or profile.
Author: Matt Brubeck (mbrubeck@limpet.net).
License: MIT license: Copyright © 2009 Matt Brubeck. Permission is granted, free of charge, to anyone obtaining a copy of this software and its associated documentation files (the "Software"), to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software without restrictions. This also allows others to whom the Software is provided to do so, under the following conditions:
Copyright Notice and Permission Requirements
The copyright notice provided above, along with this permission notice, must be included in all copies or significant portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS" WITH NO WARRANTIES
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED. THIS INCLUDES BUT IS NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. UNDER NO CIRCUMSTANCES SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE HELD LIABLE FOR ANY CLAIMS, DAMAGES, OR OTHER LIABILITIES, WHETHER ARISING FROM A CONTRACT, TORT, OR OTHERWISE, THAT RESULT FROM, OR ARE CONNECTED TO, THE SOFTWARE OR ITS USE, OR ANY OTHER DEALINGS INVOLVING THE SOFTWARE.