From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- profile/.profile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 profile/.profile (limited to 'profile/.profile') diff --git a/profile/.profile b/profile/.profile new file mode 100644 index 0000000..b05eafb --- /dev/null +++ b/profile/.profile @@ -0,0 +1,26 @@ +#!/bin/sh + +if [ "$(umask)" = "000" ] || [ "$(umask)" = "0000" ] +then + umask 0022 +fi + +if [ -f "/etc/profile.env" ] +then + # shellcheck disable=SC1091 + . "/etc/profile.env" +fi + +for i in /etc/profile.d/*.sh +do + # shellcheck disable=SC1090 + [ -r "$i" ] && . "$i" +done + +for i in "${HOME}"/.profile.d/*.sh +do + # shellcheck disable=SC1090 + [ -r "$i" ] && . "$i" +done + +export PROFILE_SOURCED="1" -- cgit 1.4.1