Skip to content

Commit aa0121f

Browse files
authored
display the ip address on startup
useful when you're developing a webservice and you want to access it from your browser outside of docker.
1 parent a3c9423 commit aa0121f

File tree

1 file changed

+3
-0
lines changed
  • provisioning/roles/zsh/files

1 file changed

+3
-0
lines changed

provisioning/roles/zsh/files/.zshrc

+3
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,6 @@ export PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin
246246
export VISUAL="nvim"
247247
export EDITOR="nvim"
248248
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib
249+
250+
# display the ip address at startup
251+
echo "ip: $fg[green][$(hostname -i)]$fg[white]"

0 commit comments

Comments
 (0)