mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Added
This commit is contained in:
parent
4a57608f45
commit
f745eb4736
1 changed files with 61 additions and 28 deletions
|
|
@ -70,3 +70,36 @@ fi
|
|||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Developer Environment Functions
|
||||
function dev() {
|
||||
echo "Select an environment:"
|
||||
echo "1. Web"
|
||||
echo "2. Elixir"
|
||||
echo "3. Haskell"
|
||||
# Add more options here...
|
||||
|
||||
read -p "Enter the number of your choice: " choice
|
||||
|
||||
case $choice in
|
||||
1)
|
||||
pushd ~/Documents/developerEnvs/webDev > /dev/null
|
||||
nix develop
|
||||
popd > /dev/null
|
||||
;;
|
||||
2)
|
||||
pushd ~/Documents/developerEnvs/elixirDev > /dev/null
|
||||
nix develop
|
||||
popd > /dev/null
|
||||
;;
|
||||
3)
|
||||
pushd ~/Documents/developerEnvs/haskellDev > /dev/null
|
||||
nix develop
|
||||
popd > /dev/null
|
||||
;;
|
||||
# Add more cases here...
|
||||
*)
|
||||
echo "Invalid choice"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue