From 8f66c70c21bf8411b34ab486b87b21ad91f19c23 Mon Sep 17 00:00:00 2001 From: egor4ka Date: Wed, 2 Feb 2022 17:44:18 +0000 Subject: [PATCH] added building stuff --- profile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 profile diff --git a/profile b/profile new file mode 100644 index 0000000..a4b421a --- /dev/null +++ b/profile @@ -0,0 +1,36 @@ +# Append "$1" to $PATH when not already in. +# Copied from Arch Linux, see #12803 for details. +append_path () { + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="${PATH:+$PATH:}$1" + ;; + esac +} + +append_path "/usr/local/sbin" +append_path "/usr/local/bin" +append_path "/usr/sbin" +append_path "/usr/bin" +append_path "/sbin" +append_path "/bin" +unset -f append_path + +export PATH +export PAGER=less +umask 022 + +# set up fallback default PS1 +: "${HOSTNAME:=$(hostname)}" +PS1="alpishell: " +# export PS1 as before +export PS1 + +for script in /etc/profile.d/*.sh ; do + if [ -r "$script" ] ; then + . "$script" + fi +done +unset script