Skip to content

Commit

Permalink
Add in various fish functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jloh committed Dec 5, 2017
1 parent 716d023 commit 1eb637d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/c.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function c
tr -d '\n' | pbcopy
end
7 changes: 7 additions & 0 deletions functions/curlssl.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function curlssl
set host $argv[2]
set uri $argv[3]
set srv $argv[1]
set srvip (dig +short $srv)
curl -s -v -o /dev/null --resolve $host:443:$srvip https://$host$uri
end
3 changes: 3 additions & 0 deletions functions/lookup.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function lookup
http --body https://get.geojs.io/v1/ip/geo.json ip==$argv
end

0 comments on commit 1eb637d

Please sign in to comment.