From 5bda4499181d5fe91b320bb74fcd87957f903802 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 29 Apr 2021 22:21:47 -0400 Subject: [PATCH] update bash aliases --- modules/cli.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/cli.nix b/modules/cli.nix index 352c00d..110dd6e 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -42,6 +42,10 @@ in (writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/") + (writeShellScriptBin "pip_install" '' + exec nix shell 'nixpkgs/nixos-unstable#python3.pkgs.pip' --command pip install --user -UI pip setuptools + '') + (writeScriptBin "zfsram" '' #!${pkgs.python3}/bin/python for ln in open('/proc/spl/kstat/zfs/arcstats').readlines(): @@ -59,6 +63,11 @@ in '') ]; + environment.etc."pip.conf".text = '' + [install] + no-warn-script-location = false + ''; + environment.variables.EDITOR = "vim"; environment.variables.PLGO_HOSTNAMEFG = "0"; @@ -73,9 +82,6 @@ in stty -ixon alias p=python3 alias tmp='cd "$(TMPDIR=$XDG_RUNTIME_DIR mktemp -d)"' - alias buildsys='nix build -f "" --no-link system' - alias sha256sum-base32='nix hash-file --type sha256 --base32' - alias pip_install='nix run nixpkgs.python3.pkgs.pip -c pip install --user -UI pip setuptools' alias catc='${pkgs.vimpager-latest}/bin/vimpager --force-passthrough' alias nix-env="echo nix-env is disabled #"