-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
40 lines (32 loc) · 963 Bytes
/
.bashrc
File metadata and controls
40 lines (32 loc) · 963 Bytes
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
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
export HISTCONTROL=ignoreboth # ignore same sucessive entries.
export HISTFILESIZE=3000 # the bash history should save 3000 commands
shopt -s checkwinsize
shopt -s histappend
# files inclusion
. ~/.bash_perso
PROMPT_DIRTRIM=2
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias grep='grep --color=auto --exclude=tags --exclude=TAGS --exclude=*.min.js --exclude-dir=.git --exclude-dir=.hg'
fi
export EDITOR="vim"
export PAGER="less"
alias l='ls -CF'
alias ll="ls -Flh --group-directories-first"
alias lll="ls -lRh"
alias la="ls -A"
alias lla="ll -A"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
shopt -s histverify
shopt -s globstar
# If we're using an xterm, force 256 colors.
case "$TERM" in
xterm*) TERM=xterm-256color;;
esac