Ignore:
Timestamp:
Feb 4, 2022, 10:10:34 PM (4 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
f8143a6
Parents:
5f3ba11 (diff), 67e86ae6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/auto-complete.md

    r5f3ba11 rb56ad5e  
    3232
    3333### Zsh
     34
     351 - Add the following somewhere:
     36    #compdef test.py
     37
     38    _test_py() {
     39        local -a options
     40        options=$($words[1] --list-comp)
     41        _alternative "files:filenames:($options)"
     42    }
     43
     44    _test_py "$@"
     45
     462 - Add the path to that file to the "fpath" environment variable.
     47
     483 - In ~/.zshrc add
     49    autoload -U compinit
     50    compinit
     51
     52*How it works:* I don't know ;P
     53
     54
Note: See TracChangeset for help on using the changeset viewer.