diff --git a/scripts/shell_completions/bash/borg b/scripts/shell_completions/bash/borg index 534d8834d..e453166dd 100644 --- a/scripts/shell_completions/bash/borg +++ b/scripts/shell_completions/bash/borg @@ -57,8 +57,8 @@ _borg() return 0 ;; '-o') - # FIXME there are lot more options, but not all are applicable: - local fuse_options="allow_other allow_root versions allow_damaged_files" + # FIXME This list is probably not full, but I tried to pick only those that are relevant to borg mount -o: + local fuse_options="ac_attr_timeout= allow_damaged_files allow_other allow_root attr_timeout= auto auto_cache auto_unmount default_permissions entry_timeout= gid= group_id= kernel_cache max_read= negative_timeout= noauto noforget remember= remount rootmode= uid= umask= user user_id= versions" COMPREPLY=( $(compgen -W "${fuse_options}" -- ${cur}) ) return 0 ;; diff --git a/scripts/shell_completions/fish/borg.fish b/scripts/shell_completions/fish/borg.fish index 284b91c89..9ea521531 100644 --- a/scripts/shell_completions/fish/borg.fish +++ b/scripts/shell_completions/fish/borg.fish @@ -235,8 +235,8 @@ complete -c borg -f -l 'last' -d 'Only last N archives' # borg mount options complete -c borg -f -s f -l 'foreground' -d 'Stay in foreground, do not daemonize' -n "__fish_seen_subcommand_from mount" -# FIXME there are lot more options, but not all are applicable: -set -l fuse_options "allow_other allow_root versions allow_damaged_files uid gid umask" +# FIXME This list is probably not full, but I tried to pick only those that are relevant to borg mount -o: +set -l fuse_options "ac_attr_timeout= allow_damaged_files allow_other allow_root attr_timeout= auto auto_cache auto_unmount default_permissions entry_timeout= gid= group_id= kernel_cache max_read= negative_timeout= noauto noforget remember= remount rootmode= uid= umask= user user_id= versions" complete -c borg -f -s o -d 'Fuse mount OPTION' -a "$fuse_options" -n "__fish_seen_subcommand_from mount" # Archive filters complete -c borg -f -s P -l 'prefix' -d 'Only archive names starting with PREFIX' -n "__fish_seen_subcommand_from mount"