fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Ilya Grigorievjj completions: use dynamic completions by default, also fix932010cd0

master
517 B10 linesraw
1# The reason for `__this-command-does-not-exist` is that, if dynamic completion
2# is not implemented, we'd like to get an error reliably. However, the
3# behavior of `jj` without arguments depends on the value of a config, see
4# https://jj-vcs.github.io/jj/latest/config/#default-command
5if set -l completion (COMPLETE=fish jj __this-command-does-not-exist 2>/dev/null)
6    # jj is new enough for dynamic completions to be implemented
7    printf %s\n $completion | source
8else
9    jj util completion fish | source
10end