https://github.com/drorspei/ipython-adbcompleter
An IPython completer for adb commands
https://github.com/drorspei/ipython-adbcompleter
Last synced: 6 months ago
JSON representation
An IPython completer for adb commands
- Host: GitHub
- URL: https://github.com/drorspei/ipython-adbcompleter
- Owner: drorspei
- License: mit
- Created: 2018-03-12T19:49:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T16:13:33.000Z (about 8 years ago)
- Last Synced: 2024-12-30T00:14:30.756Z (over 1 year ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipython-adbcompleter
An IPython completer for adb commands
Beyond the basic argument completion, this extension also adds completions for file/directory paths:
```
In [1]: adb p # hit tab!
pull
push
In [1]: adb pull /storage/ # hit tab!
6432-6235
emulated
enc_emulated
Private
self
In [1]: adb pull /storage/emu # hit tab!
In [1]: adb pull /storage/emulated
```
Amazing! This will save me so much time!
Notes:
1. The android path must start with `/`. This is to reduce queries to the phone when you want a path on your computer.
2. Unicode characters in paths mess up my ipython, so for now adbcompleter just skips them.
3. adbcompleter now supports multiple connected devices!
# Install
Use pip like this:
`pip install git+https://github.com/drorspei/ipython-adbcompleter`
Then add the following lines to your `ipython_config.py` file (usually in `~/.ipython/profile_default/`):
```
c.InteractiveShellApp.exec_lines.append(
"try:\n %load_ext ipython_adbcompleter\nexcept ImportError: pass")
```