This commit is contained in:
Bryan Ramos 2023-05-23 15:02:45 -04:00
parent 4a57608f45
commit f745eb4736

View file

@ -42,8 +42,8 @@ fi
# Alias List
alias ls='lsd'
# penpot {run|stop|update|help} alias function
penpot() {
# penpot {run|stop|update|help} alias function
penpot() {
case "$1" in
run)
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml up -d >/dev/null 2>&1
@ -69,4 +69,37 @@ fi
echo "Usage: penpot {run|stop|update|help}"
;;
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
}