diff --git a/.config/fish/conf.d/00-init.fish b/.config/fish/conf.d/00-init.fish index f588925..c3f0e02 100644 --- a/.config/fish/conf.d/00-init.fish +++ b/.config/fish/conf.d/00-init.fish @@ -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"