add ssgep for current systems

This commit is contained in:
Rico Ullmann 2019-01-05 19:24:11 +01:00
parent 7f93d1afe4
commit f59178d111
Signed by: rullmann
GPG Key ID: 1C6E8C577C878C6F
1 changed files with 16 additions and 0 deletions

16
functions/ssgrep.fish Normal file
View File

@ -0,0 +1,16 @@
function ssgrep --description 'show open ports for $argv'
switch (count $argv)
case 0
echo -e "No argument given!\nDo you expect me to guess what you're looking for?"
return 1
case 1
ss -tlpn | grep $argv
case \*
echo "Only 1 argument is valid!"
return 1
end
end