requested changes

This commit is contained in:
Wilke Schwiedop
2016-12-21 18:44:34 +01:00
parent 8204d3103b
commit 28cde83c33
2 changed files with 5 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ complete -c ssh -s a --description "Disables forwarding of the authentication ag
complete -c ssh -s A --description "Enables forwarding of the authentication agent" complete -c ssh -s A --description "Enables forwarding of the authentication agent"
complete -x -c ssh -s b --description "Interface to transmit from" -a " complete -x -c ssh -s b --description "Interface to transmit from" -a "
( (
tail -n +2 /proc/net/arp | cut -d ' ' -f 1 ^/dev/null cut -d ' ' -f 1 /proc/net/arp ^/dev/null | string match -r -v '^IP'
) )
" "

View File

@@ -1,5 +1,8 @@
function __fish_print_function_prototypes -d "Prints the names of all function prototypes found in the headers in the current directory" function __fish_print_function_prototypes -d "Prints the names of all function prototypes found in the headers in the current directory"
sed -n "s/^\(.*[^[a-zA-Z_0-9]\|\)\([a-zA-Z_][a-zA-Z_0-9]*\) *(.*);.*\$/\2/p" *.h* set -l headers *.h *.hh *.hpp *.hxx
if set -q headers[1]
sed -n "s/^\(.*[^[a-zA-Z_0-9]\|\)\([a-zA-Z_][a-zA-Z_0-9]*\) *(.*);.*\$/\2/p" $headers
end
end end