Skip to content

Commit fc4bf39

Browse files
committed
✨ add bin urls
1 parent 84c90bd commit fc4bf39

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.additional_bashrc.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ if [ -z "$SSH_AUTH_SOCK" ] ; then
3434
fi
3535
fi
3636

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

42-
# makes it possible to add custom prompt functions without cahnging the entrypoint:
39+
# makes it possible to add custom prompt functions without changing the entrypoint:
4340
test -f ./after-bashrc_*.sh && source ./after-bashrc_*.sh || true

bin/urls

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -v VIRTUAL_HOST ] ; then
4+
echo 'Frontend URLs:'
5+
echo $VIRTUAL_HOST | tr "," "\n" | awk '{print " https://" $0}'
6+
else
7+
echo 'no $VIRTUAL_HOST env set'
8+
fi

0 commit comments

Comments
 (0)