Skip to content

Commit e36ab61

Browse files
committed
profile.d: sane naming
1 parent 1142cfa commit e36ab61

File tree

8 files changed

+29
-25
lines changed

8 files changed

+29
-25
lines changed

profile.d/20-shell

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Setup the INPUTRC environment variable.
2+
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
3+
INPUTRC=/etc/inputrc
4+
fi
5+
export INPUTRC
6+
7+
# By default, the umask should be set.
8+
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
9+
umask 002
10+
else
11+
umask 022
12+
fi
13+
14+
if [ -d ~/bin ]; then
15+
PATH="$HOME/bin:$PATH"
16+
fi

profile.d/25-binutils

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Setup for /bin/ls to support color, the alias is in /etc/bashrc.
2+
if [ "$LS_COLORS" ]; then
3+
:
4+
elif [ -f "/etc/dircolors" ]; then
5+
eval "$(dircolors -b /etc/dircolors)"
6+
elif [ -f "$HOME/.dircolors" ] ; then
7+
eval "$(dircolors -b "$HOME/.dircolors")"
8+
else
9+
eval "$(dircolors -b)"
10+
fi

profile.d/rtdir renamed to profile.d/40-DE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Set locale for legacy desktop environments that do not respect localectl.
2+
3+
export LANG=$(cat /etc/locale.conf) LC_ALL=$(cat /etc/locale.conf)
14
if test -z "${XDG_RUNTIME_DIR}"; then
25
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
36
if ! test -d "${XDG_RUNTIME_DIR}"; then

profile.d/dircolors

Lines changed: 0 additions & 8 deletions
This file was deleted.

profile.d/extrapaths

Lines changed: 0 additions & 3 deletions
This file was deleted.

profile.d/legacy-locale

Lines changed: 0 additions & 3 deletions
This file was deleted.

profile.d/readline

Lines changed: 0 additions & 5 deletions
This file was deleted.

profile.d/umask

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)