You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
autocompletion support for built_ins, aliases and a number of predefined UNIX commands now in master + some custom completion for some UNIX commands: git, apt-get, make, jsh --> should be stable, report here if not
Autocompletion functions ("generators") go into jsh-autocomplete.c. I documented this file quiet well, since I lost a lot of time trying to understand how readline works. Anyone who feels like adding autocompletion support for some (usefull) command => go ahead and open a pull request! Should't be too hard, as I wrote a friendly macro who does everything for you ;-) Check out some examples in jsh-autocomplete.c
Future work
for the autocompletion of UNIX command names: we should scan all directories in $PATH at startup-time and put all commands in an array for autocompletion. Currently only a hack: array with widely used UNIX commands
Pressing Tab ↹ should yield:
list search show install remove edit-sources update upgrade full-upgrade
Pressing Tab ↹ should yield:
update upgrade install remove autoremove purge source build-dep dist-upgrade dselect-upgrade clean autoclean check changelog download
Pressing Tab ↹ should yield:
gencaches showpkg showsrc stats dump dumpavail unmet search show depends rdepends pkgnames dotty xvcg policy
Pressing Tab ↹ should yield the various active internet connections:
eth0 lo wlan0
Pressing Tab ↹ should yield:
--help-all
--calendar
--entry
--error
--info
--file-selection
--list
--notification
--progress
--question
--warning
--scale
--text-info
--color-selection
--password
--forms
Pressing Tab ↹ should yield:
start
stop
restart
reload
status
is-enabled
enable
disable
help
daemon-reload
Pressing Tab ↹ should yield:
--all
--kernel-name
--nodename
--kernel-release
--kernel-version
--machine
--processor
--hardware-platform
Pressing Tab ↹ should yield all available branches.
The text was updated successfully, but these errors were encountered: