Skip to content

Commit

Permalink
✨ add bin urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti committed Jul 10, 2024
1 parent 84c90bd commit fc4bf39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .additional_bashrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ if [ -z "$SSH_AUTH_SOCK" ] ; then
fi
fi

if [ -v VIRTUAL_HOST ] ; then
echo 'Frontend URLs:'
echo $VIRTUAL_HOST | tr "," "\n" | awk '{print " https://" $0}'
fi
urls

# makes it possible to add custom prompt functions without cahnging the entrypoint:
# makes it possible to add custom prompt functions without changing the entrypoint:
test -f ./after-bashrc_*.sh && source ./after-bashrc_*.sh || true
8 changes: 8 additions & 0 deletions bin/urls
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if [ -v VIRTUAL_HOST ] ; then
echo 'Frontend URLs:'
echo $VIRTUAL_HOST | tr "," "\n" | awk '{print " https://" $0}'
else
echo 'no $VIRTUAL_HOST env set'
fi

0 comments on commit fc4bf39

Please sign in to comment.