-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f70b16
commit 8f66c70
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |