From e8ac4a5449e9bca441e2ac93e041f3399cf3026a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 21 Dec 2018 00:52:32 +0100 Subject: Add postHook to highlight nix messages --- default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/default.nix b/default.nix index 28767a9..b5dad69 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,21 @@ with import {}; let nixpkgs = import {}; + postHook = '' + header() { + echo -ne "\033[1;36m" + echo -n "$1" + echo -e "\033[0m" + } + + echoCmd() { + printf "\033[1;34m%s:\033[0m" "$1" + shift + printf ' %q' "$@" + echo + } + ''; + fetchedGithub = path: let json = lib.importJSON path; -- cgit v1.2.3