forked from dgvncsz0f/dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.bashrc
61 lines (52 loc) · 1.15 KB
/
dot.bashrc
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
61
# -*- mode: Shell-script; sh-basic-offset: 2; -*-
my_reg_als()
{
alias :q=exit
alias startx="/usr/bin/startx & exit; exit"
alias tssh="/usr/bin/tsocks /usr/bin/ssh"
alias tscp="/usr/bin/tsocks /usr/bin/scp"
alias more="less"
alias vi="vim"
alias rm="/bin/rm -i"
alias chroot32="/usr/bin/sudo -H /usr/sbin/chroot /var/chroot/sid-ia32"
alias ls="ls -F"
alias ll="ls -l"
alias l1="ls -1"
alias la="ll -a"
}
my_exp_env()
{
export GPG_TTY=`tty`
PS1='\n\u@\H \w \n(\j) \$ '
}
my_switch2zsh()
{
if [ -x /bin/zsh ]
then
exec /bin/zsh
else
if [ -x /usr/bin/zsh ]
then
exec /usr/bin/zsh
fi
fi
}
[ -z "${PS1}" ] && return
[ -f /etc/bash.bashrc ] && source /etc/bash.bashrc
[ -f /etc/bashrc ] && source /etc/bashrc
[ -f "${HOME}/.bashrc.local" ] && source "${HOME}/.bashrc.local"
shopt -s checkwinsize
shopt -s histappend
shopt -s checkjobs
shopt -s globstar
shopt -s dirspell
shopt -s extglob
shopt -s extquote
shopt -s cdspell
my_reg_als
my_exp_env
my_switch2zsh
export GPG_TTY=$(tty)
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"