From f8b7b030d293c17232753103564eba7e2f417a24 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 11 Apr 2021 14:03:58 +0530 Subject: Adds collection of shell files and new-shell command --- scripts/bin/new-shell | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/bin/new-shell (limited to 'scripts/bin/new-shell') diff --git a/scripts/bin/new-shell b/scripts/bin/new-shell new file mode 100755 index 0000000..313ef91 --- /dev/null +++ b/scripts/bin/new-shell @@ -0,0 +1,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; + -- cgit v1.3.1