aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2025-10-20 23:49:39 +0900
committerShohei YOSHIDA <syohex@gmail.com>2025-10-20 23:49:39 +0900
commit7aeefd00209f781768878c66aa1d387992a99f67 (patch)
treea7c2f63dbb22a9c182b0491628252af8e97e6f31
parentadd swapon completion (diff)
downloadzsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.tar
zsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.tar.gz
zsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.tar.bz2
zsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.tar.lz
zsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.tar.xz
zsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.tar.zst
zsh-completions-7aeefd00209f781768878c66aa1d387992a99f67.zip
add swapoff completion
-rw-r--r--src/_swapoff51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/_swapoff b/src/_swapoff
new file mode 100644
index 0000000..bd12199
--- /dev/null
+++ b/src/_swapoff
@@ -0,0 +1,51 @@
+#compdef swapoff
+# ------------------------------------------------------------------------------
+# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+# ------------------------------------------------------------------------------
+# Description
+# -----------
+#
+# Completion script for swapoff v2.41 (https://github.com/util-linux/util-linux)
+#
+# ------------------------------------------------------------------------------
+# Authors
+# -------
+#
+# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
+#
+# ------------------------------------------------------------------------------
+
+_arguments \
+ '(-a --all)'{-a,--all}'[enable all swaps from /etc/fstab]' \
+ '(- *)'{-h,--help}'[display help message]' \