mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 16:39:42 -04:00
Updated
This commit is contained in:
parent
fff6888373
commit
aa16060f1c
1 changed files with 22 additions and 15 deletions
|
|
@ -40,19 +40,26 @@ fi
|
|||
|
||||
|
||||
# Alias List
|
||||
alias ls='lsd'
|
||||
alias ls='lsd'
|
||||
|
||||
# penpot alias function
|
||||
penpot() {
|
||||
case "$1" in
|
||||
run)
|
||||
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml up -d
|
||||
;;
|
||||
stop)
|
||||
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml down
|
||||
;;
|
||||
*)
|
||||
echo "Usage: penpot {run|stop}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
# penpot alias function
|
||||
penpot() {
|
||||
case "$1" in
|
||||
run)
|
||||
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml up -d
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
xdg-open "http://localhost:9001"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
open "http://localhost:9001"
|
||||
fi
|
||||
echo "Started penpot on http://localhost:9001"
|
||||
;;
|
||||
stop)
|
||||
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml down
|
||||
echo "Stopping penpot"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: penpot {run|stop}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue