diff options
author | Elizabeth <me@liz.coffee> | 2025-05-28 23:02:02 -0700 |
---|---|---|
committer | Elizabeth <me@liz.coffee> | 2025-05-28 23:02:02 -0700 |
commit | ea02ee5f0c6a977ba18d457175c23774690cfc38 (patch) | |
tree | 82f9ba7b52d8ed121897035958915f80ffb3b231 /home | |
parent | 2a0f7892fd3d00daa62a24359d2bae186092916f (diff) | |
download | dotfiles-ea02ee5f0c6a977ba18d457175c23774690cfc38.tar.gz dotfiles-ea02ee5f0c6a977ba18d457175c23774690cfc38.zip |
Working dotfiles!
Diffstat (limited to 'home')
-rw-r--r-- | home/.pubkey.j2 | 1 | ||||
-rwxr-xr-x | home/scripts/system_name.sh | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/home/.pubkey.j2 b/home/.pubkey.j2 new file mode 100644 index 0000000..e4e3602 --- /dev/null +++ b/home/.pubkey.j2 @@ -0,0 +1 @@ +{{ pgp.asc }} diff --git a/home/scripts/system_name.sh b/home/scripts/system_name.sh index 92b714a..2625293 100755 --- a/home/scripts/system_name.sh +++ b/home/scripts/system_name.sh @@ -1,11 +1,11 @@ #!/bin/sh -platform="$(platform.sh)" +PLATFORM="${PLATFORM:-`platform.sh`}" MACHINE="$HOST" -if [ "$platform" = "osx" ]; then +if [ "$PLATFORM" = "osx" ]; then MACHINE="$(scutil --get ComputerName)" -elif [ "$platform" = "linux" ]; then +elif [ "$PLATFORM" = "linux" ]; then MACHINE="$(cat /proc/sys/kernel/hostname)" fi |