mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
forgot penpot
This commit is contained in:
parent
83ea7a52a1
commit
ffedd77b73
1 changed files with 29 additions and 0 deletions
|
|
@ -29,6 +29,35 @@ function cdg() {
|
|||
cd "$root_dir"
|
||||
}
|
||||
|
||||
function penpot() {
|
||||
case "$1" in
|
||||
run)
|
||||
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml up -d >/dev/null 2>&1
|
||||
nohup bash -c '(sleep 10 && if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
xdg-open "http://localhost:9001"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
open "http://localhost:9001"
|
||||
fi)' >/dev/null 2>&1 &
|
||||
echo "Started penpot on http://localhost:9001"
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping penpot"
|
||||
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml down >/dev/null 2>&1
|
||||
;;
|
||||
update)
|
||||
sudo docker compose -f ~/Documents/tools/penpot/docker-compose.yaml pull
|
||||
echo "Updated penpot!"
|
||||
;;
|
||||
help)
|
||||
xdg-open "https://help.penpot.app/"
|
||||
echo "Opened penpot help page in your browser."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: penpot {run|stop|update|help}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
source ~/Documents/projects/ldv/ldv.sh
|
||||
|
||||
set -o vi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue