-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
108 lines (86 loc) · 1.54 KB
/
.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
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
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f ~/.alias ]; then
. ~/.alias
fi
case $SHELL in
/bin/bash)
PS1='\u@\h \w \$ '
;;
*)
PS1='@declips $ '
;;
esac
MAKE=`type -p make`
MKDIR=`type -p mkdir`
SED=`type -p sed`
TMPDIR=/var/tmp
TTY=`type -p tty`
UNAME=`type -p uname`
OS=`${UNAME} -s`
ARCH=`${UNAME} -m`
case ${OS} in
'Linux')
case ${ARCH} in
'armv6l'|'armv7l'|'i686'|'x86_64')
GREP=/bin/grep
;;
'x86_64')
GREP=/usr/bin/grep
;;
esac
;;
'Darwin')
GREP=/usr/bin/grep
;;
esac
if [ `echo $- | ${GREP} -i -c i` = 1 ]
then
_tty=`${TTY} | ${SED} -e 's/\/.*\///g'`
HISTDIR=$HOME/.history/`hostname`/`tty | ${SED} -e 's/\/.$//' | ${SED} -e 's/\/.*\///g'`
if [ ! -d ${HISTDIR} ]
then
${MKDIR} -p ${HISTDIR}
fi
HISTFILE=$HISTDIR/${_tty}
HISTCONTROL="ignoreboth"
fi
CDPATH=.:$HOME:/var
PROMPT_DIRTRIM=2
EDITOR=`type -p vi`
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
LESS="eMis"
LESSHISTFILE="-"
MAILCHECK=0
MANPATH=/usr/kerberos/man:/usr/share/man/de:$MANPATH
PAGER=/usr/bin/less
PATH=$PATH:/sbin:/usr/sbin:$HOME/bin:$HOME/mongoDB/bin:.
PGPPATH=$HOME/.gnupg
export HISTCONTROL HISTFILE PS1 CDPATH LESS PAGER MAKE PGPPATH EDITOR
export LESSHISTFILE PROMPT_DIRTRIM MAILCHECK
##
#
# JAVA Stuff
#
##
CLASSPATH=${CLASSPATH}:.
export CLASSPATH
##
#
# PostgreSQL Variablen für die PostgreSQL puppetdb
#
##
PGDATABASE=puppetdb
export PGDATABASE
#
##
## Sprach- und Kodierungssettings
##
#
unset LANG
LC_ALL="en_US.UTF-8"
export LC_ALL