-
Notifications
You must be signed in to change notification settings - Fork 3
/
profile
58 lines (44 loc) · 1.16 KB
/
profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# /etc/profile: interactive shell environment
###########################
# executable search paths #
###########################
# the executable search path
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/usr/local/bin:/usr/local/sbin"
# the new file permissions mask
umask 022
#################
# shell options #
#################
# set the prompt
if [ 0 -eq "$(id -u)" ]
then
prompt="#"
else
prompt="\$"
fi
export PS1="[\u@\h \W]$prompt "
# the history file size
export HISTFILESIZE=1000
# ignore duplicates in the history
export HISTCONTROL="ignoredups"
#######################
# important variables #
#######################
# the terminal type
export TERM="linux"
###############################
# freedesktop.org directories #
###############################
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_DIRS="/usr/share:/opt/share:/usr/local/share"
export XDG_CONFIG_DIRS="/etc/xdg"
export XDG_CACHE_HOME="$HOME/.cache"
############################
# extras and customization #
############################
for i in /etc/profile.d/*.sh
do
. $i
done
[ -e /etc/profile.local ] && . /etc/profile.local