add 'wraps' attribute to allow autocompletion (#606)

This commit is contained in:
basbebe 2020-05-29 16:58:59 +02:00 committed by GitHub
parent 87bb2d7742
commit 0a318bd411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
# e.g. ~/.config/fish/functions/n.fish # e.g. ~/.config/fish/functions/n.fish
# or, add the lines to the 'config.fish' file. # or, add the lines to the 'config.fish' file.
function n --description 'support nnn quit and change directory' function n --wraps nnn --description 'support nnn quit and change directory'
# Block nesting of nnn in subshells # Block nesting of nnn in subshells
if test -n "$NNNLVL" if test -n "$NNNLVL"
if [ (expr $NNNLVL + 0) -ge 1 ] if [ (expr $NNNLVL + 0) -ge 1 ]