Open GijsTimmers opened 9 years ago
apt
support done --> see branch
pacman
support is on the way :p
Status update:
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
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
list search show install remove edit-sources update upgrade full-upgrade
update upgrade install remove autoremove purge source build-dep dist-upgrade dselect-upgrade clean autoclean check changelog download
gencaches showpkg showsrc stats dump dumpavail unmet search show depends rdepends pkgnames dotty xvcg policy
eth0 lo wlan0
--help-all
--calendar
--entry
--error
--info
--file-selection
--list
--notification
--progress
--question
--warning
--scale
--text-info
--color-selection
--password
--forms
start
stop
restart
reload
status
is-enabled
enable
disable
help
daemon-reload
--all
--kernel-name
--nodename
--kernel-release
--kernel-version
--machine
--processor
--hardware-platform