-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
56 lines (45 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
ulimit -S -c0
shopt -s no_empty_cmd_completion
shopt -s cmdhist
shopt -s checkwinsize
shopt -s checkhash
shopt -s histappend
shopt -s histverify
shopt -s sourcepath
shopt -u mailwarn
unset MAILCHECK
export EDITOR=/usr/bin/vim
PROMPT_COMMAND="history -a"
b=`tput bold`
n=`tput sgr0`
PS1='${b}[\u@\h \W]\$${n} '
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
[ -r /usr/share/git/completion/git-completion.bash ] && . /usr/share/git/completion/git-completion.bash
#-------------------------------------------------------------
# Tailoring 'less'
#-------------------------------------------------------------
# Keep the alias here, just so all of the less setup is together
alias more='less'
export PAGER=less
export LESSCHARSET='latin1'
export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-'
# Use this if lesspipe.sh exists.
export LESS='-i -N -w -z-4 -g -e -M -X -F -R -P%t?f%f \
:stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...'
#-------------------------------------------------------------
# history
#-------------------------------------------------------------
export HISTIGNORE="&:bg:fg:ll:h"
export HISTTIMEFORMAT="$(echo -e ${BCyan})[%d/%m %H:%M:%S]$(echo -e ${NC}) "
export HISTCONTROL=ignoredups
# Most important alias!
# Keep this in .bashrc so it will create the file the first time.
alias realias='$EDITOR ~/.bash_aliases; source ~/.bash_aliases'