diff options
Diffstat (limited to 'shellrc.d')
-rw-r--r-- | shellrc.d/nix | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/shellrc.d/nix b/shellrc.d/nix deleted file mode 100644 index bf26cd5..0000000 --- a/shellrc.d/nix +++ /dev/null @@ -1,21 +0,0 @@ -# vim: ft=sh: -if command -v nix >/dev/null; then - -dev() { - local target="$1" - local flake dev - if [[ "${target#*"#"}" != "$target" ]]; then - IFS='#' read flake dev <<<"$target" - else - if [ -e "$target" ]; then - flake="$target" - dev="default" - else - flake="personal" - dev="${target:-default}" - fi - fi - nix develop "$flake#$dev" -c zsh -} - -fi |