dot

packages and services management
Log | Files | Refs | README

commit b34f1353698916dc57b78d390cd69a9f5a06f51d
parent 2a7f47be5fe0f9ccbfacdbd59779c1dd6dc0d14a
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sat, 29 Jul 2017 19:59:35 +0200

profile -> rc

Diffstat:
Arc | 20++++++++++++++++++++
Mshell/.profile | 2+-
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/rc b/rc @@ -0,0 +1,20 @@ +export ETC="$HOME/etc" +export OPT="$HOME/opt" +export SRC="$HOME/src" +export GIT="$HOME/git" +export VAR="$HOME/var" + +export ROOT="$HOME/.local" + +export MANPATH="$ROOT/man:$MANPATH" +export C_INCLUDE_PATH="$ROOT/include" +export LIBRARY_PATH="$ROOT/.local/lib" +export LD_LIBRARY_PATH="$ROOT/lib:$LD_LIBRARY_PATH" + +for bin in "$ETC/bin" "$ETC"/*/bin "$OPT"/*/bin +do [ -d "$bin" ] && export PATH="$bin:$PATH" +done + +for profile in "$ETC"/*/profile +do [ -f "$ETC"/*/profile ] && . "$profile" +done diff --git a/shell/.profile b/shell/.profile @@ -1,4 +1,4 @@ -. "$HOME/etc/0-profile" +. "$HOME/etc/rc" export NAME='Josuah Demangeon' export NICK='josuah'