This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shebang added only to appease shellcheck | |
# Cross-platform for bash. | |
# Worry less about when writting a script that must run on Windows and Linux. | |
# Meant to be used with "source" command in scripts or .bashrc/.zshrc | |
export USER="${USER:-${USERNAME:-$(whoami)}}" | |
export USERNAME="${USERNAME:-$USER}" | |
export HOSTNAME="${HOSTNAME:-${MACHINENAME:-$(hostname)}}" |