l 5 logify: init

This commit is contained in:
lassulus 2017-04-12 17:57:26 +02:00
parent 9c49d9a439
commit c9ef03188c
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,7 @@
vimperator = pkgs.callPackage ./firefoxPlugins/vimperator.nix {}; vimperator = pkgs.callPackage ./firefoxPlugins/vimperator.nix {};
}; };
init = pkgs.callPackage ./init/default.nix args; init = pkgs.callPackage ./init/default.nix args;
logify = pkgs.callPackage ./logify/default.nix {};
mk_sql_pair = pkgs.callPackage ./mk_sql_pair/default.nix {}; mk_sql_pair = pkgs.callPackage ./mk_sql_pair/default.nix {};
mpv-poll = pkgs.callPackage ./mpv-poll/default.nix {}; mpv-poll = pkgs.callPackage ./mpv-poll/default.nix {};
pop = pkgs.callPackage ./pop/default.nix {}; pop = pkgs.callPackage ./pop/default.nix {};

View File

@ -0,0 +1,7 @@
{ curl, writeDashBin }:
#usage: ping 8.8.8.8 |& logify -I
writeDashBin "logify" ''
date_args=''${@:--Is}
while read line; do echo $(date "$date_args") $line; done
''