aboutsummaryrefslogtreecommitdiff
path: root/etc/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/zsh/zprofile')
-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