aboutsummaryrefslogtreecommitdiff
path: root/scripts/bin/new-shell
blob: 313ef91cd6261c7f9292c8dfb79c64cc55060a09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

kind=$1;

[[ -f "$kind" ]] && echo "You need to specify the type of shell" && exit 1;

shell_path="$HOME/nixos/shell/$kind.nix";

[[ ! -f "$shell_path" ]] && echo "Shell $kind doesn't exist" && exit 1;

cp $shell_path ./default.nix;