KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a list of unison profiles which exists in ~/.unison/*.prf . I'd like to have bash completion so that when I type unison or unison-gtk and hit tab it would list the .prf files from that folder without the .prf part. Perhaps an example would be clearer: $ ls ~/.unison/*.prf default.prf dot-mozilla.prf to-desktop.prf $ cd ~ # just to show you don't have to be in the ~/.unison folder $ unison to<tab> $ unison to-desktop I foresee needing this for another tool as well, so it would be convenient if there were parts that could be reused.
Tags (comma-separated)
Save Edits
Cancel