-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
53 lines (38 loc) · 983 Bytes
/
.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
# .bash_profile
umask 0222
#Oracle Settings
. .profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Info for the Oracle settings
echo -e "\033[33m USE setdb to set Oracle Profile!\033[0m"
# see:: http://www.pipperr.de/dokuwiki/doku.php?id=windows:putty_ip_im_header
HOST_NAME_IP_ADR=`hostname -i`
function myprompt {
local BLUE="\[\e[0;34m\]"
local GREEN="\[\e[1;32m\]"
local RED="\[\e[0;31m\]"
local NO_COLOR="\[\e[0m\]"
local LIGHT_BLUE="\[\e[0;36m\]"
case $TERM in
xterm*|rxvt*)
TITLEBAR='\[\033]0;\u@\h (${HOST_NAME_IP_ADR}) (ORASID::${ORACLE_SID}) > \007\]'
;;
*)
TITLEBAR=""
;;
esac
PS1="$LIGHT_BLUE[${TITLEBAR}$GREEN\u@\h$RED:$LIGHT_BLUE\W ]$ $NO_COLOR"
PS2='continue-> '
PS4='$0.$LINENO+ '
}
function settitle {
# fix implemet this, will be called from login.sql
mypromt $1 $2
}
myprompt