mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix a few more trailing N_ calls
darcs-hash:20070127020240-ac50b-6081d8cc0bc5d648b53b3ddfe878ec0f65412b6e.gz
This commit is contained in:
parent
bc1f9b6f1c
commit
5e6d1efb56
1 changed files with 13 additions and 13 deletions
|
@ -83,7 +83,7 @@ end
|
||||||
# Set exit message
|
# Set exit message
|
||||||
#
|
#
|
||||||
|
|
||||||
function fish_on_exit -d (_ "Commands to execute when fish exits") --on-process %self
|
function fish_on_exit --description "Commands to execute when fish exits" --on-process %self
|
||||||
printf (_ "Good bye\n")
|
printf (_ "Good bye\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ functions -e set_default
|
||||||
# autoloaded.
|
# autoloaded.
|
||||||
#
|
#
|
||||||
|
|
||||||
function __fish_repaint --on-variable fish_color_cwd -d (N_ "Event handler, repaints the prompt when fish_color_cwd changes")
|
function __fish_repaint --on-variable fish_color_cwd --description "Event handler, repaints the prompt when fish_color_cwd changes"
|
||||||
set -e __fish_prompt_cwd
|
set -e __fish_prompt_cwd
|
||||||
commandline -f repaint
|
commandline -f repaint
|
||||||
end
|
end
|
||||||
|
@ -177,27 +177,27 @@ end
|
||||||
# and no descriptions
|
# and no descriptions
|
||||||
#
|
#
|
||||||
|
|
||||||
function __fish_complete_users -d "Print a list of local users, with the real user name as a description"
|
function __fish_complete_users --description "Print a list of local users, with the real user name as a description"
|
||||||
cat /etc/passwd | sed -e "s/^\([^:]*\):[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1\t\2/"
|
cat /etc/passwd | sed -e "s/^\([^:]*\):[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1\t\2/"
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_complete_groups -d "Print a list of local groups, with group members as the description"
|
function __fish_complete_groups --description "Print a list of local groups, with group members as the description"
|
||||||
cat /etc/group | sed -e "s/^\([^:]*\):[^:]*:[^:]*:\(.*\)/\1\tMembers: \2/"
|
cat /etc/group | sed -e "s/^\([^:]*\):[^:]*:[^:]*:\(.*\)/\1\tMembers: \2/"
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_complete_command -d "Complete using all available commands"
|
function __fish_complete_command --description "Complete using all available commands"
|
||||||
printf "%s\n" (commandline -ct)(complete -C (commandline -ct))
|
printf "%s\n" (commandline -ct)(complete -C (commandline -ct))
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_print_interfaces -d "Print a list of known network interfaces"
|
function __fish_print_interfaces --description "Print a list of known network interfaces"
|
||||||
netstat -i -n -a | awk 'NR>2'|awk '{print $1}'
|
netstat -i -n -a | awk 'NR>2'|awk '{print $1}'
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_print_addresses -d "Print a list of known network addresses"
|
function __fish_print_addresses --description "Print a list of known network addresses"
|
||||||
/sbin/ifconfig |sgrep 'inet addr'|cut -d : -f 2|cut -d ' ' -f 1
|
/sbin/ifconfig |sgrep 'inet addr'|cut -d : -f 2|cut -d ' ' -f 1
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_print_users -d "Print a list of local users"
|
function __fish_print_users --description "Print a list of local users"
|
||||||
cat /etc/passwd | cut -d : -f 1
|
cat /etc/passwd | cut -d : -f 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -205,9 +205,9 @@ end
|
||||||
# Completions for SysV startup scripts
|
# Completions for SysV startup scripts
|
||||||
#
|
#
|
||||||
|
|
||||||
complete -x -p "/etc/init.d/*" -a start\t(_ 'Start service')
|
complete -x -p "/etc/init.d/*" -a start --description 'Start service'
|
||||||
complete -x -p "/etc/init.d/*" -a stop\t(_ 'Stop service')
|
complete -x -p "/etc/init.d/*" -a stop --description 'Stop service'
|
||||||
complete -x -p "/etc/init.d/*" -a status\t(_ 'Print service status')
|
complete -x -p "/etc/init.d/*" -a status --description 'Print service status'
|
||||||
complete -x -p "/etc/init.d/*" -a restart\t(_ 'Stop and then start service')
|
complete -x -p "/etc/init.d/*" -a restart --description 'Stop and then start service'
|
||||||
complete -x -p "/etc/init.d/*" -a reload\t(_ 'Reload service configuration')
|
complete -x -p "/etc/init.d/*" -a reload --description 'Reload service configuration'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue