-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
29 lines (20 loc) · 842 Bytes
/
.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
username='liviuxyz'
export EDITOR='vim'
export VISUAL='vim'
#ignore upper and lowercase when TAB completion
bind "set completion-ignore-case on"
########## THIS WILL merge all the history file
# Credit : https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows
# Avoid duplicates
HISTCONTROL=ignoredups:erasedups
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend
# After each command, append to the history file and reread it
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
### Alias Zone
alias grep='grep --color=always'
alias ls='ls --color=always'
alias lsa='ls -a --color=always'
alias ll='ls -lh --color=always'
alias lla='ls -lah --color=always'
alias df='df -h | grep -vE "/dev/loop*|tmps*|"'