aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorjack <[email protected]>2023-11-21 15:01:30 -0700
committerjack <[email protected]>2023-11-21 15:01:30 -0700
commitdadaef31bda28bb0cf0d7d372cfc358efa579b1f (patch)
treef090153c4c2fa5a5abab8c689ed403146c4b1b54 /etc
parent3d104bb3fdccfcaf3131f880b7c1845afc3340ad (diff)
downloaddots-dadaef31bda28bb0cf0d7d372cfc358efa579b1f.tar.gz
dots-dadaef31bda28bb0cf0d7d372cfc358efa579b1f.zip
more
Diffstat (limited to 'etc')
-rw-r--r--etc/zsh/zprofile21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/zsh/zprofile b/etc/zsh/zprofile
new file mode 100644
index 00000000..2a64adea
--- /dev/null
+++ b/etc/zsh/zprofile
@@ -0,0 +1,21 @@
+# /etc/profile
+export LANG=C.UTF-8
+
+# Append "$1" to $PATH when not already in.
+# This function API is accessible to scripts in /etc/profile.d
+append_path () {
+ case ":$PATH:" in
+ *:"$1":*)
+ ;;
+ *)
+ PATH="${PATH:+$PATH:}$1"
+ esac
+}
+
+append_path '/opt/rustc/bin'
+append_path '/usr/local/go/bin'
+append_path '/usr/local/sbin'
+append_path '/usr/local/bin'
+append_path '/usr/bin'
+
+export PATH