From dadaef31bda28bb0cf0d7d372cfc358efa579b1f Mon Sep 17 00:00:00 2001 From: jack <0x6A73@pm.me> Date: Tue, 21 Nov 2023 15:01:30 -0700 Subject: more --- etc/zsh/zprofile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 etc/zsh/zprofile (limited to 'etc') 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 -- cgit v1.2.3