mirror of
https://github.com/nmasur/dotfiles
synced 2026-06-03 09:33:57 +00:00
backups and fish functions
This commit is contained in:
Executable
+5
@@ -0,0 +1,5 @@
|
||||
if count $argv >/dev/null
|
||||
curl ipinfo.io/$argv
|
||||
else
|
||||
curl checkip.amazonaws.com
|
||||
end
|
||||
@@ -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