forked from dgvncsz0f/dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.bash_profile
60 lines (54 loc) · 1.39 KB
/
dot.bash_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
# -*- mode: Shell-script; sh-basic-offset: 2; -*-
my_mnt_sec()
{
local ENCFS=/usr/bin/encfs
local MOUNT=/bin/mount
local WC=/usr/bin/wc
local GREP=/bin/grep
if [ -x "${ENCFS}" ]
then
if [ -d "${HOME}/.sec" ]
then
while [ "`\"${MOUNT}\" | \"${GREP}\" /home/dsouza/sec | \"${WC}\" -l`" != "1" ]
do
"${ENCFS}" "${HOME}/.sec" "${HOME}/sec"
done
fi
fi
}
my_exe_ext()
{
local EMACS="/usr/bin/emacs"
local PIDOF="/bin/pidof"
[ -f "${HOME}/.bashrc" ] && source "${HOME}/.bashrc"
}
my_exp_env()
{
export PATH=$HOME/bin:$PATH
export HISTFILE="${HOME}/.bash_history"
export PAGER=/usr/bin/less
export FTP_PASSIVE_MODE=1
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
[ -x /usr/bin/dircolors ] && eval `/usr/bin/dircolors`
if [ -x "/usr/bin/emacs" ]
then
export VISUAL=/usr/bin/emacs
export EDITOR=/usr/bin/emacs
elif [ -x "/usr/bin/vim" ]
then
export VISUAL=/usr/bin/vim
export EDITOR=/usr/bin/vim
elif [ -x "/usr/bin/vi" ]
then
export VISUAL=/usr/bin/vi
export EDITOR=/usr/vin/vi
fi
}
[ -f /etc/profile ] && source /etc/profile
[ -f "${HOME}/.bash_profile.local" ] && source "${HOME}/.bash_profile.local"
[ -f /etc/bash_completion ] && source /etc/bash_completion
my_exp_env
my_exe_ext
my_mnt_sec
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*