Replace .zprofile with .profile
This commit is contained in:
parent
65400637e5
commit
4184624d40
3 changed files with 25 additions and 14 deletions
24
etc/profile
Normal file
24
etc/profile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
source_if() {
|
||||
if [ -e "$1" ]; then
|
||||
source "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
path_if() {
|
||||
if [ -d "$1" ]; then
|
||||
case ":$PATH:" in
|
||||
*:"$1":*)
|
||||
;;
|
||||
*)
|
||||
PATH="${1}${PATH:+:$PATH}"
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
source_if "${HOME}/.nix-profile/etc/profile.d/nix.sh"
|
||||
|
||||
path_if "$HOME/bin"
|
||||
path_if "$HOME/.local/bin"
|
||||
|
||||
unset -f source_if
|
||||
unset -f path_if
|
||||
Loading…
Add table
Add a link
Reference in a new issue