Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-05-04 20:51:15 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
bd18736ee55e28651db0bb2b9c9630e8a57ec200
fish-shell/share/functions/__fish_systemctl_swaps.fish

10 lines
319 B
Fish
Raw Normal View History

systemctl completions: Add more unit types and commands It should now support all unit types mentioned in systemd.unit(5)
2015-02-19 16:02:16 +01:00
function __fish_systemctl_swaps
reformat all fish scripts I hate doing this but I am tired of touching a fish script as part of some change and having `make style` radically change it. Which makes editing fish scripts more painful than it needs to be. It is time to do a wholesale reformatting of these scripts to conform to the documented style as implemented by the `fish_indent` program.
2016-11-27 21:27:22 -08:00
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
systemctl completions: Add more unit types and commands It should now support all unit types mentioned in systemd.unit(5)
2015-02-19 16:02:16 +01:00
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 76ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API