-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
45 lines (37 loc) · 1.12 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# set maximum lines in history file
HISTFILESIZE=5000000
HISTSIZE=5000000
# Avoid duplicates
HISTCONTROL=ignoreboth:erasedups
# Avoid cd and rm in history
HISTIGNORE='cd *:rm *'
# 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"
man() {
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;44;33m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
command man "$@"
}
PATH="$PATH:$HOME/.emacs.d/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/bin"
alias ls='ls --color=auto'
alias ll='ls --color=auto -lah'
alias cat='cat -v'
alias less='less -R'
alias gst='git status'
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
force_color_prompt=yes
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '