summaryrefslogtreecommitdiffstats
path: root/sh
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-29 03:13:31 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-29 03:13:31 -0400
commit243e280b5fd9527891a58d6578f2e659302908c7 (patch)
tree1443d96e6824c8e04355c2f1fb2c562a9afe2132 /sh
parentdb8dd3e6140e66db46f309bff9054ba137eb797a (diff)
downloadconf-243e280b5fd9527891a58d6578f2e659302908c7.tar.gz
conf-243e280b5fd9527891a58d6578f2e659302908c7.zip
just use hostnames for this stuff
i don't really want another level of indirection
Diffstat (limited to 'sh')
-rw-r--r--sh/env7
1 files changed, 5 insertions, 2 deletions
diff --git a/sh/env b/sh/env
index 0d0424c..ece7491 100644
--- a/sh/env
+++ b/sh/env
@@ -3,8 +3,11 @@ export MPD_HOST=bishamon
export MANPAGER="$HOME/.bin/vimmanpager"
export PERLDOC_PAGER="$HOME/.bin/vimmanpager"
export EDITOR=$(/usr/bin/which vim)
-[ "$(cat "${HOME}/conf/.conf-type")" = "laptop" ] && export GIT_SSH="$HOME/.bin/laptop/ssh"
-[ "$(cat "${HOME}/conf/.conf-type")" = "laptop" ] && export RSYNC_RSH="$HOME/.bin/laptop/ssh"
+ssh="${HOME}/.bin/$(hostname)/ssh"
+if [ -x "$ssh" ]; then
+ export GIT_SSH="$ssh"
+ export RSYNC_RSH="$ssh"
+fi
export TEXINPUTS=".:$HOME/conf/tex:"
export LESS='-QR'
export NOPASTE_SERVICES="ssh"