aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-09-24 13:08:57 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-09-24 13:13:13 +0200
commit44ec46cf8e234e731aac00b66555a73a1d553b9e (patch)
tree6343d299a0c694ee847ded789140ae6651c83eda /zsh
parent0df3c38f15c08fd6cf32711e96202ba7a7b33228 (diff)
downloaddotfiles-44ec46cf8e234e731aac00b66555a73a1d553b9e.tar.xz
zsh/zprofile: remove HOSTNAME/FQDN variables, replace with SHORTHOST
SHORTHOST to match with the zsh built in HOST variable
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zprofile10
1 files changed, 4 insertions, 6 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile
index 325f130..946bc5f 100644
--- a/zsh/.zprofile
+++ b/zsh/.zprofile
@@ -35,19 +35,17 @@ export GTK_IM_MODULE=xim
export SUDO_PROMPT=$'\e[31mSUDO\e[m password for \e[34m%p\e[m: '
-export HOSTNAME=$(hostname -s)
-export FQDN=$(hostname -f)
-
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/"$UID"/dbus/user_bus_socket
+export SHORTHOST=$(hostname -s)
export XAUTHORITY="$XDG_RUNTIME_DIR"/xauthority
+if [[ -f "$ZDOTDIR"/profile-"$SHORTHOST" ]]; then
+ source "$ZDOTDIR"/profile-"$SHORTHOST"
+fi
# LS_COLORS is now required for `ls` to use colour
source <(dircolors -b "$XDG_CONFIG_HOME"/dircolors)
-[[ -f "$ZDOTDIR"/profile-"$(hostname -s)" ]] && \
- source "$ZDOTDIR"/profile-"$(hostname -s)"
-
if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx "$XDG_CONFIG_HOME"/X11/xinitrc
fi