mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-22 23:01:33 -04:00
update shell completions to 1.1.17
This commit is contained in:
parent
6371e739b7
commit
fa64949ef7
3 changed files with 12 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ _borg()
|
|||
return 0
|
||||
;;
|
||||
'--files-cache')
|
||||
local files_cache_mode="ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime disabled"
|
||||
local files_cache_mode="ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime size disabled"
|
||||
COMPREPLY=( $(compgen -W "${files_cache_mode}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ complete -c borg -f -l 'nobsdflags' -d 'Do not store bsdflags'
|
|||
complete -c borg -f -l 'noacls' -d 'Do not read and store ACLs into archive' -n "__fish_seen_subcommand_from create"
|
||||
complete -c borg -f -l 'noxattrs' -d 'Do not read and store xattrs into archive' -n "__fish_seen_subcommand_from create"
|
||||
complete -c borg -f -l 'ignore-inode' -d 'Ignore inode data in file metadata cache' -n "__fish_seen_subcommand_from create"
|
||||
set -l files_cache_mode "ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime disabled"
|
||||
set -l files_cache_mode "ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime size disabled"
|
||||
complete -c borg -f -l 'files-cache' -d 'Operate files cache in MODE' -a "$files_cache_mode" -n "__fish_seen_subcommand_from create"
|
||||
complete -c borg -f -l 'read-special' -d 'Open device files like regular files' -n "__fish_seen_subcommand_from create"
|
||||
# Archive options
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#compdef borg borgfs -P -value-,BORG_*,-default-
|
||||
|
||||
# Zsh completion for Borg Backup 1.1.16.
|
||||
# Zsh completion for Borg Backup 1.1.17.
|
||||
#
|
||||
# Recommended _borg specific settings:
|
||||
#
|
||||
|
|
@ -149,7 +149,7 @@ _borg-create() {
|
|||
'--noacls[do not read and store ACLs into archive]' \
|
||||
'--noxattrs[do not read and store xattrs into archive]' \
|
||||
'--ignore-inode[ignore inode data in the file metadata cache used to detect unchanged files]' \
|
||||
'--files-cache=[operate files cache in MODE. default: ctime,size,inode]:MODE:(ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime disabled)' \
|
||||
'--files-cache=[operate files cache in MODE. default: ctime,size,inode]:MODE:(ctime,size,inode mtime,size,inode ctime,size mtime,size rechunk,ctime rechunk,mtime size disabled)' \
|
||||
'--read-special[open and read block and char device files as well as FIFOs as if they were regular files]' \
|
||||
$common_options \
|
||||
':ARCHIVE: _borg_repository_or_archive -a -p' \
|
||||
|
|
@ -771,6 +771,14 @@ _borg_parameters() {
|
|||
_description values expl 'value'
|
||||
compadd "$expl[@]" YES NO && ret=0
|
||||
;;
|
||||
(LIBC)
|
||||
_wanted libraries expl 'library' \
|
||||
compadd - ${^=LD_LIBRARY_PATH:-/usr/lib /usr/local/lib}/lib*.(a|so*)(:t:fr:s/lib//) && ret=0
|
||||
;;
|
||||
(SELFTEST)
|
||||
_description values expl 'value'
|
||||
compadd "$expl[@]" disabled && ret=0
|
||||
;;
|
||||
(WORKAROUNDS)
|
||||
_wanted workarounds expl 'workaround' _sequence -n 1 compadd - basesyncfile && ret=0
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue