graysky2 / anything-sync-daemon

Symlinks and syncs user specified dirs to RAM thus reducing HDD/SDD calls and speeding-up the system.
https://wiki.archlinux.org/index.php/Anything-sync-daemon
MIT License
349 stars 44 forks source link

Bash Completion #25

Closed ada482 closed 9 years ago

ada482 commented 9 years ago

Added a bash completion script, and updated Makefile to appropriately reflect it.

graysky2 commented 9 years ago

For zsh, these work by hitting tab after the program name, ie "asd " but when I try your PR under bash, I do not get the expected outcome. Bash behaves by just listing out the contents of the dir in which I am sitting. Does this work for you?

ada482 commented 9 years ago

It works correctly on my end: typing "asd" and attempting to tab complete will print "clean parse" on a new line, and partial completions of clean or parse will fill out. Tab completing after clean/parse is completed prints a description.

Can you verify that the script managed to land in "/usr/share/bash-completion/completions/asd"? Also check to see if any other bash-completions work for other programs? If not, it's possible you don't have the bash-completion package installed or sourced correctly within bashrc, and instead you're using bash's base tab completion.

graysky2 commented 9 years ago

it's possible you don't have the bash-completion package installed

Bingo. That was it.