diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-02-18 00:37:46 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-02-18 00:39:25 +0100 |
commit | ff9d1a2f0c9cc82ae4c73d8660a87829bae9bf30 (patch) | |
tree | c6a0693694b3b7d93de3fa2c8eef099bc08e66ad /etc | |
parent | 6f6db0269f76525e91201038b77798d666c8130b (diff) | |
parent | a01d926f9d10bb504ae4304567924e43368d4954 (diff) | |
download | guix-ff9d1a2f0c9cc82ae4c73d8660a87829bae9bf30.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completion/bash/guix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index 6b84193dbe..70430c5c95 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix @@ -106,6 +106,15 @@ _guix_is_dash_L () esac } } +_guix_is_dash_m () +{ + [ "${COMP_WORDS[$COMP_CWORD - 1]}" = "-m" ] \ + || { case "${COMP_WORDS[$COMP_CWORD]}" in + --manifest=*) true;; + *) false;; + esac } +} + _guix_complete_file () { # Let Readline complete file names. @@ -149,7 +158,7 @@ _guix_complete () *) if _guix_is_command "package" then - if _guix_is_dash_L + if _guix_is_dash_L || _guix_is_dash_m then _guix_complete_file elif _guix_is_removing |