aboutsummaryrefslogtreecommitdiff
path: root/etc/completion/bash
diff options
context:
space:
mode:
Diffstat (limited to 'etc/completion/bash')
-rw-r--r--etc/completion/bash/guix24
1 files changed, 21 insertions, 3 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index fdbdf46810..26480e5863 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -111,6 +111,24 @@ _guix_is_removing ()
$result
}
+_guix_is_dash_f ()
+{
+ [ "${COMP_WORDS[$COMP_CWORD - 1]}" = "-f" ] \
+ || { case "${COMP_WORDS[$COMP_CWORD]}" in
+ --file=*|--install-from-file=*) true;;
+ *) false;;
+ esac }
+}
+
+_guix_is_dash_l ()
+{
+ [ "${COMP_WORDS[$COMP_CWORD - 1]}" = "-l" ] \
+ || { case "${COMP_WORDS[$COMP_CWORD]}" in
+ --load=*) true;;
+ *) false;;
+ esac }
+}
+
_guix_is_dash_L ()
{
[ "${COMP_WORDS[$COMP_CWORD - 1]}" = "-L" ] \
@@ -182,7 +200,7 @@ _guix_complete ()
*)
if _guix_is_command "package"
then
- if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p
+ if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p || _guix_is_dash_f
then
_guix_complete_file
elif _guix_is_removing
@@ -217,7 +235,7 @@ _guix_complete ()
fi
elif _guix_is_command "build"
then
- if _guix_is_dash_L || _guix_is_dash_m
+ if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_f
then
_guix_complete_file
else
@@ -225,7 +243,7 @@ _guix_complete ()
fi
elif _guix_is_command "environment"
then
- if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p
+ if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p || _guix_is_dash_l
then
_guix_complete_file
else
de'>-rw-r--r--test_indexeddb.py18053logplainabout -rw-r--r--test_indexeddb_files_server.py5489logplainabout -rw-r--r--test_install.py16970logplainabout -rw-r--r--test_item_list.py10327logplainabout -rw-r--r--test_item_preview.py7086logplainabout -rw-r--r--test_patterns.py5548logplainabout -rw-r--r--test_patterns_query_manager.py11674logplainabout -rw-r--r--test_patterns_query_tree.py19255logplainabout -rw-r--r--test_payload_create.py8945logplainabout -rw-r--r--test_policy_deciding.py4592logplainabout -rw-r--r--test_policy_enforcing.py4419logplainabout -rw-r--r--test_popup.py9054logplainabout -rw-r--r--test_repo_query.py9950logplainabout -rw-r--r--test_repo_query_cacher.py4571logplainabout -rw-r--r--test_settings.py2316logplainabout -rw-r--r--test_text_entry_list.py15537logplainabout -rw-r--r--test_webrequest.py2433logplainabout -rw-r--r--utils.py10016logplainabout