mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 23:10:13 +00:00
backups and fish functions
This commit is contained in:
5
pkgs/tools/misc/ip-check/ip.fish
Executable file
5
pkgs/tools/misc/ip-check/ip.fish
Executable file
@ -0,0 +1,5 @@
|
||||
if count $argv >/dev/null
|
||||
curl ipinfo.io/$argv
|
||||
else
|
||||
curl checkip.amazonaws.com
|
||||
end
|
10
pkgs/tools/misc/ip-check/package.nix
Normal file
10
pkgs/tools/misc/ip-check/package.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
pkgs.writers.writeFishBin "ip-check" {
|
||||
makeWrapperArgs = [
|
||||
"--prefix"
|
||||
"PATH"
|
||||
":"
|
||||
"${lib.makeBinPath [ pkgs.curl ]}"
|
||||
];
|
||||
} builtins.readFile ./ip.fish
|
Reference in New Issue
Block a user