diff options
Diffstat (limited to 'share/functions/__fish_systemctl_swaps.fish')
-rw-r--r-- | share/functions/__fish_systemctl_swaps.fish | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/functions/__fish_systemctl_swaps.fish b/share/functions/__fish_systemctl_swaps.fish new file mode 100644 index 00000000..57df4367 --- /dev/null +++ b/share/functions/__fish_systemctl_swaps.fish @@ -0,0 +1,9 @@ +function __fish_systemctl_swaps + if type -q systemctl + if __fish_contains_opt user + systemctl --user list-unit-files --no-legend --type=swap ^/dev/null | cut -f 1 -d ' ' + else + systemctl list-unit-files --no-legend --type=swap ^/dev/null | cut -f 1 -d ' ' + end + end +end |