-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bashrc
127 lines (114 loc) · 3.13 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Get the aliases and functions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Define a few Colours
BLACK='\e[0;30m'
BLUE='\e[0;34m'
GREEN='\e[0;32m'
CYAN='\e[0;36m'
RED='\e[0;31m'
PURPLE='\e[0;35m'
BROWN='\e[0;33m'
LIGHTGRAY='\e[0;37m'
DARKGRAY='\e[1;30m'
LIGHTBLUE='\e[1;34m'
LIGHTGREEN='\e[1;32m'
LIGHTCYAN='\e[1;36m'
LIGHTRED='\e[1;31m'
LIGHTPURPLE='\e[1;35m'
YELLOW='\e[1;33m'
WHITE='\e[1;37m'
NC='\e[0m' # No Color
#########
# MAKE MAN PAGES PRETTY
#######################################################
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
############################## ##################################
# ##### PROMPT SECTION ##### ####################################
############################## ##################################
# color_name='\[\033[ color_code m\]Ô
rgb_restore='\[\033[00m\]'
rgb_black='\[\033[00;30m\]'
rgb_firebrick='\[\033[00;31m\]'
rgb_red='\[\033[01;31m\]'
rgb_forest='\[\033[00;32m\]'
rgb_green='\[\033[01;32m\]'
rgb_brown='\[\033[00;33m\]'
rgb_yellow='\[\033[01;33m\]'
rgb_navy='\[\033[00;34m\]'
rgb_blue='\[\033[01;34m\]'
rgb_purple='\[\033[00;35m\]'
rgb_magenta='\[\033[01;35m\]'
rgb_cadet='\[\033[00;36m\]'
rgb_cyan='\[\033[01;36m\]'
rgb_gray='\[\033[00;37m\]'
rgb_white='\[\033[01;37m\]'
rgb_host='${rgb_cyan}'
rgb_std='${rgb_white}'
if [ `id -u` -eq 0 ]
then
rgb_usr='${rgb_red}'
else
rgb_usr='${rgb_green}'
fi
#[ -n "$PS1" ] && PS1='${rgb_usr}`whoami`${rgb_std} \W ${rgb_usr}\\\$${rgb_restore} '
[ -n "$PS1" ] && PS1="${rgb_usr}`whoami`${rgb_host}@\h: \W ${rgb_usr}\\\$${rgb_restore} "
unset rgb_restore \
rgb_black \
rgb_firebrick \
rgb_host \
rgb_red \
rgb_forest \
rgb_green \
rgb_brown \
rgb_yellow \
rgb_navy \
rgb_blue \
rgb_purple \
rgb_magenta \
rgb_cadet \
rgb_cyan \
rgb_gray \
rgb_white \
rgb_std \
rgb_usr
# funcion de autocompletado para ssh
#_compssh ()
#{
#cur=${COMP_WORDS[COMP_CWORD]};
#COMPREPLY=($(compgen -W "$(cat ~/.ssh/config | grep host | sed '/hostna/d;s/host //')" -- $cur))
#}
#complete -F _compssh ssh
eval $(dircolors $HOME/.dircolors)
if [ -d $HOME/.bash_completion.d/ ]
then
. $HOME/.bash_completion.d/*
fi
#aliases
alias ls='ls --color=auto'
#alias ls='ls -G'
alias ll='ls -l'
alias lh='ls -lh'
alias la='ls -a'
alias screen='$HOME/opt/bin/screen'
alias grep='grep --color'
PS1='\u@\h \w\$ '
TERM="xterm"
EDITOR=vim
PATH=$PATH:$HOME/opt/bin
#PATH=$PATH:$HOME/bin
export WIKI=$HOME/src/pixelmuerto.github.com/wiki
export PATH
alias xtermHuge='xterm -fn *-*-*-*-*-*-20-*'
alias xtermHugeWhite='xtermHuge -bg white -fg black'
alias xtermWhite='xterm -bg white -fg black'
export VIMHOME=$HOME/.vim
export RC=$HOME/src/rc
[[ $- == *i* ]] && . /Users/pablo/src/git-prompt/git-prompt.sh