How can I provide tab completions to fish shell from my own script?

后端 未结 2 860
[愿得一人]
[愿得一人] 2021-02-05 07:51

I am running Ubuntu 13.10 and fish 2.1.0. I want to write myself a Python script to do some tasks from the command line. The script will require command line arguments.

2条回答
  •  名媛妹妹
    2021-02-05 08:15

    You should create a fish autocomplete function for your script and source it or put it in ~/.config/fish/completions/myprog.fish folder.

    reference: fish docs

提交回复
热议问题