aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-08-14 16:24:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-08-14 16:24:40 +1200
commit2108d018f378f2728ab43ba2dceba3c889869bdf (patch)
treec674e3a7b90ec0f35667f64c91906f1baab35001
parentStart versioning XFCE4 terminal config (diff)
downloaddotfiles-2108d018f378f2728ab43ba2dceba3c889869bdf.tar.gz
dotfiles-2108d018f378f2728ab43ba2dceba3c889869bdf.zip
Switch back to separate assignment/export
-rw-r--r--sh/profile24
-rw-r--r--systemd/profile.d/systemd.sh3
-rw-r--r--tmux/profile.d/tmux.sh3
3 files changed, 19 insertions, 11 deletions
diff --git a/sh/profile b/sh/profile
index 61122076..5b835458 100644
--- a/sh/profile
+++ b/sh/profile
@@ -1,23 +1,29 @@
# Use lynx as our terminal browser
-export BROWSER=lynx
+BROWSER=lynx
+export BROWSER
# Use ed as our line editor and vi as our visual editor
-export EDITOR=ed
-export VISUAL=vi
+EDITOR=ed
+VISUAL=vi
+export EDITOR VISUAL
# Set the POSIX interactive startup file to ~/.shinit
-export ENV=$HOME/.shinit
+ENV=$HOME/.shinit
+export ENV
# Use NZ English, but bytewise sorting
-export LANG=en_NZ.UTF-8
-export LANGUAGE=en_NZ:en
-export LC_COLLATE=C
+LANG=en_NZ.UTF-8
+LANGUAGE=en_NZ:en
+LC_COLLATE=C
+export LANG LANGUAGE LC_COLLATE
# Use less as my pager
-export PAGER=less
+PAGER=less
+export PAGER
# Assume I'm at home unless something overrides it
-export TZ=Pacific/Auckland
+TZ=Pacific/Auckland
+export TZ
# Source all scripts in ~/.profile.d; many of them will be modifying $PATH, so
# we'll get that sorted out first
diff --git a/systemd/profile.d/systemd.sh b/systemd/profile.d/systemd.sh
index 1f305f65..b5f05c24 100644
--- a/systemd/profile.d/systemd.sh
+++ b/systemd/profile.d/systemd.sh
@@ -1,2 +1,3 @@
# Use $VISUAL for editing systemd unit files, not $EDITOR
-export SYSTEMD_EDITOR=$VISUAL
+SYSTEMD_EDITOR=$VISUAL
+export SYSTEMD_EDITOR
diff --git a/tmux/profile.d/tmux.sh b/tmux/profile.d/tmux.sh
index 2a936da5..15ba00ff 100644
--- a/tmux/profile.d/tmux.sh
+++ b/tmux/profile.d/tmux.sh
@@ -1,3 +1,4 @@
# Encourage tmux to put its sockets into XDG_RUNTIME_DIR rather than /tmp
[ -n "$XDG_RUNTIME_DIR" ] || return
-export TMUX_TMPDIR=$XDG_RUNTIME_DIR
+TMUX_TMPDIR=$XDG_RUNTIME_DIR
+export TMUX_TMPDIR