From 394ec9309f17b27945714d3d30215f453fb975a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sat, 26 Oct 2019 19:43:29 +0200 Subject: [PATCH] fix(scripts): niveum-update, where, wcd --- configs/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/configs/default.nix b/configs/default.nix index b7b7287..2ba0a0b 100644 --- a/configs/default.nix +++ b/configs/default.nix @@ -193,7 +193,7 @@ in (pkgs.writers.writeDashBin "niveum-update" '' ${pkgs.nix-prefetch-git}/bin/nix-prefetch-git \ --url https://github.com/NixOS/nixpkgs-channels \ - --rev refs/heads/nixos-${config.system.stateVersion} + --rev refs/heads/nixos-${config.system.stateVersion} \ > "${niveumPath}/nixpkgs.json" '') ]; @@ -202,14 +202,11 @@ in environment.interactiveShellInit = "export PATH=$PATH:$HOME/.cargo/bin"; environment.shellAliases = let - path = makeBinPath [ pkgs.which pkgs.coreutils pkgs.findutils ]; wcd = pkgs.writers.writeDash "wcd" '' - PATH=${path} - cd "$(readlink "$(which --skip-alias "$1")" | xargs dirname)/.." + cd "$(readlink "$(${pkgs.which}/bin/which --skip-alias "$1")" | xargs dirname)/.." ''; where = pkgs.writers.writeDash "where" '' - PATH=${path} - readlink "$(which --skip-alias "$1")" | xargs dirname + readlink "$(${pkgs.which}/bin/which --skip-alias "$1")" | xargs dirname ''; take = pkgs.writers.writeDash "take" '' mkdir "$1" && cd "$1"