diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-12 12:00:02 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-03-12 12:00:02 -0700 |
commit | 234fb7c2fec7e78f1236316cf77dc16750c9cfc3 (patch) | |
tree | a973c5f91cb11f2657873866c1c9c24f5853552b /share | |
parent | 2c7e0ef577bcb7e4b4e24ee7bcb77cf9057290fc (diff) |
Rename print_service_names to __fish_service_print_names
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/service.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/completions/service.fish b/share/completions/service.fish index f7d2ba95..2f361437 100644 --- a/share/completions/service.fish +++ b/share/completions/service.fish @@ -1,4 +1,4 @@ -function print_service_names +function __fish_service_print_names if type -f systemctl >/dev/null command systemctl list-units -t service | cut -d ' ' -f 1 | grep '\.service$' | sed -e 's/\.service$//' end @@ -7,7 +7,7 @@ function print_service_names end # Fist argument is the names of the service, i.e. a file in /etc/init.d -complete -c service -n "test (count (commandline -poc)) = 1" -xa "(print_service_names)" --description "Service name" +complete -c service -n "test (count (commandline -poc)) = 1" -xa "(__fish_service_print_names)" --description "Service name" #The second argument is what action to take with the service complete -c service -n "test (count (commandline -poc)) -gt 1" -xa '$__fish_service_commands' |