diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-10 10:10:51 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-10 13:15:49 -0400 |
commit | 8f6b0c1b360f2fea3f7f6563808513cbdd51df80 (patch) | |
tree | c90846bd2b002904d2e2534baa7c78189c7ff476 /completions | |
parent | c0cbaab04b3d37a1786f04018eb6226359291031 (diff) | |
download | bfs-8f6b0c1b360f2fea3f7f6563808513cbdd51df80.tar.xz |
Implement -context
Closes: https://github.com/tavianator/bfs/issues/27
Diffstat (limited to 'completions')
-rw-r--r-- | completions/bfs.bash | 1 | ||||
-rw-r--r-- | completions/bfs.fish | 1 | ||||
-rw-r--r-- | completions/bfs.zsh | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/completions/bfs.bash b/completions/bfs.bash index 816f1ec..6fd82c8 100644 --- a/completions/bfs.bash +++ b/completions/bfs.bash @@ -32,6 +32,7 @@ _bfs() { # (e.g. because they are numeric, glob, regexp, time, etc.) local nocomp=( -{a,B,c,m}{min,since,time} + -context -ilname -iname -inum diff --git a/completions/bfs.fish b/completions/bfs.fish index 0c58ef4..24b0ad9 100644 --- a/completions/bfs.fish +++ b/completions/bfs.fish @@ -71,6 +71,7 @@ complete -c bfs -o Btime -d "Find files birthed specified number of days ago" -x complete -c bfs -o ctime -d "Find files changed specified number of days ago" -x complete -c bfs -o mtime -d "Find files modified specified number of days ago" -x complete -c bfs -o capable -d "Find files with capabilities set" +complete -c bfs -o context -d "Find files by SELinux context" -x complete -c bfs -o depth -d "Find files with specified number of depth" -x complete -c bfs -o empty -d "Find empty files/directories" complete -c bfs -o executable -d "Find files the current user can execute" diff --git a/completions/bfs.zsh b/completions/bfs.zsh index 07db456..432ab8c 100644 --- a/completions/bfs.zsh +++ b/completions/bfs.zsh @@ -74,6 +74,7 @@ args=( '*-mtime[find files modified N days ago]:modification time (days):->times' '*-capable[find files with POSIX.1e capabilities set]' + '*-context[find files by SELinux context]:pattern' # -depth without parameters exist above. I don't know how to handle this gracefully '*-empty[find empty files/directories]' '*-executable[find files the current user can execute]' |