-
Notifications
You must be signed in to change notification settings - Fork 1
/
.profile
60 lines (47 loc) · 1.41 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
59
60
_add_path()
{
if [ -d "$1" ] ; then
PATH="$1:$PATH"
fi
export PATH
}
_add_path /usr/games
_add_path "$HOME/.bin"
_add_path "$HOME/.dotfiles-bin"
#_add_path "$HOME/../Моё/Программирование/tt"
_add_path "$HOME/.rvm/bin"
export PATH HOME TERM
###########################################################################
export MAKEOPTS="$MAKEOPTS -j`nproc`"
###########################################################################
_select_app()
{
if which "$2" >/dev/null 2>/dev/null ; then
export "$1"="$2"
fi
}
_select_app EDITOR mcedit
_select_app MANPAGER less
_select_app PAGER less
###########################################################################
export GUI_TERMINALS='lilyterm -e:lxterminal -e:terminal:gnome-terminal:terminator:urxvt:xterm -fullscreen'
export GUI_EDITORS='qk:medit:adie:gedit:kate:scite'
export GUI_FILEMANAGERS='stuurman:pcmanfm:thunar:PathFinder:nautilus:worker'
export GUI_CALCULATORS='galculator:calculator'
###########################################################################
__PROFILE_INCLUDED=1
# if running bash, include .bashrc
if [[ -z "$__BASHRC_INCLUDED" ]] ; then
if [[ -n "$BASH_VERSION" ]] ; then
if [[ -f "$HOME/.bashrc" ]] ; then
. "$HOME/.bashrc"
fi
fi
fi
if [[ -n "$KSH_VERSION" ]] ; then
if [[ -f "$HOME/.kshrc" ]] ; then
export ENV="$HOME/.kshrc"
elif [[ -f /etc/ksh.kshrc ]] ; then
export ENV=/etc/ksh.kshrc
fi
fi