🔧 feat(fish): Set env vars for machine info

Added $OS & $HOST global variables.
This commit is contained in:
punkfairie 2024-03-10 11:56:39 -07:00
parent 315b46ee53
commit 85446f029c
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -9,6 +9,15 @@ set -Ux XDG_CACHE_HOME "$HOME/.cache"
set -Ux XDG_DATA_HOME "$HOME/.local/share"
set -Ux XDG_STATE_HOME "$HOME/.local/state"
# Machine info.
set -gx OS "$(uname)"
if command -v hostnamectl &>/dev/null
set -gx HOST "$(hostnamectl --static)"
else if command -v scutil &>/dev/null # macOS
set -gx HOST "$(scutil --get ComputerName)"
end
# Projects dir.
set -gx HACK "$HOME/hackin"