summaryrefslogtreecommitdiff
path: root/home/zshrc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/zshrc.nix')
-rw-r--r--home/zshrc.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/home/zshrc.nix b/home/zshrc.nix
index 704ef0e..ec231f5 100644
--- a/home/zshrc.nix
+++ b/home/zshrc.nix
@@ -21,10 +21,6 @@
source ${local.git-aliases}
}
- function shenv() {
- NIXPKGS_ALLOW_UNFREE=1 nix shell --impure 'system#shenvs.'"$1"
- }
-
function xseli() {
T=$(mktemp)
$EDITOR -n $T
@@ -44,8 +40,6 @@
INSTALLABLES=()
while read -d: PATH_ITEM; do
if [[ "$PATH_ITEM" =~ "^(/nix/store/[a-z0-9]+-([a-zA-Z][a-zA-Z0-9_]*(-[a-zA-Z][a-zA-Z0-9_]*)*)(-[^/]+)?)/" ]]; then
- ENTER="''${match[1]}/lib/shenv/enter"
- [[ "''${match[2]}" =~ '^shenv-' && -r "$ENTER" ]] && . "$ENTER"
INSTALLABLES+=("''${match[2]}")
fi
done <<<"$PATH"
@@ -54,7 +48,7 @@
_GRML_NIX_SHELL="{''${INSTALLABLES[@]}} "
fi
- unset INSTALLABLES ENTER PATH_ITEM
+ unset INSTALLABLES PATH_ITEM
function grml_nix_shell() {
REPLY="$_GRML_NIX_SHELL"