forked from dilawar/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·135 lines (118 loc) · 3.98 KB
/
bashrc
File metadata and controls
executable file
·135 lines (118 loc) · 3.98 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[000;32m\]\u@\h\[\033[00m\]:\[\033[001;34m\]\w\[\033[00m\]\$\n'
else
PS1='${debian_chroot:+($debian_chroot)}\[\033[000;32m\]\u@\h\[\033[00m\]:\[\033[001;34m\]\w\[\033[00m\]\$\n'
fi
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# History support
#export HISTCONTROL=ignoredups:erasedups
#shopt -s histappend
#export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
export SCRIPTHOME=$HOME/Scripts
export EDITOR=vim
alias sudo='sudo -E'
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias rm='rm -i'
alias sh='bash'
alias src='source ~/.bashrc'
alias rsync='rsync --progress'
alias i='sudo -E emerge -avuND '
alias s='sudo emerge --search '
alias netcat='nc.openbsd'
alias ii='sudo apt-get -c ~/.aptconf install'
alias ss='apt-cache search'
alias uu='sudo apt-get upgrade'
alias cpptags='ctags h-c++-kinds=+p --fields=+iaS --extra=+q'
alias pandoc='pandoc --data-dir=$HOME/Scripts/pandoc'
alias lynx='lynx --cfg=$HOME/Scripts/lynx.cfg'
alias t='$SCRIPTHOME/todo.sh -d $SCRIPTHOME/todo.cfg'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if [ -f $HOME/.termcap ]; then
TERMCAP=~/.termcap
export TERMCAP
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
export MMSIMHOME=/cad/cadence/mmsim
export MMSIM_PATH=/cad/cadence/mmsim/tools/bin
export MIRALIB=/cad/lib/miralib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin:$HOME/bin/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Bluespec-2012.01.A/lib
#export VIM=~/Works/MyPublic/Scripts/vim
source ~/.proxy
#source ~/.bsv_sh
export CAPEM_INSTALL=~/capem
export CAPEM_PROJECT_DIRECTORY=~/capem/projects
export alias_file
export LAVA2000_Satzoo=/cad/bin/satzoo
export LAVA2000_SMV=/cad/bin/smv
# read history for each terminal
#export PROMPT_COMMAND="history -n; history -a"
export NNTPSERVER=103.21.127.130
source ~/Scripts/profile
export PATH="$PATH:/opt/sbw-2.10.0/bin/"
export FTP_PROXY=
export TEXINPUTS=".:~/Scripts/latex/texinputs//:"
export PATH=$PATH:$HOME/Scripts:$HOME/.local/bin:$HOME/bin/bin:$HOME/.local/bin
export PATH=$PATH:~/Work/bin/sage-6.0-i686-Linux
export MYVIMRC=~/.vim/vimrc
export LYNX_CFG=~/Scripts/lynx.cfg
export PATH=$PATH:/cluster/share/software/subversion189/bin
source ~/Scripts/cd.sh
# some more ls aliases
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias rm='rm -i'
alias sh='bash'
alias src='source ~/.bashrc'
alias rsync='rsync --progress'
alias i='sudo emerge -avu --autounmask-write'
alias netcat='nc.openbsd'
alias ii='sudo apt-get -c ~/.aptconf install'
alias s='apt-cache search'
alias u='sudo apt-get upgrade'
alias cpptags='ctags --c++-kinds=+p --fields=+iaS --extra=+q'
alias pandoc='pandoc --data-dir=$HOME/Scripts/pandoc'
alias lynx='lynx --cfg=$HOME/Scripts/lynx.cfg'
alias c='dilawar_cd'
source $SCRIPTHOME/notes.sh
#export PYTHONPATH="$HOME/moose3.0.1/python:$PYTHONPATH"
unset LD_LIBRARY_PATH