blob: fdf628b73f1dd9d86501a66f9b65a6fc74dcff32 (
plain)
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
|
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Completion
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# History
export HISTSIZE=2000
export HISTFILESIZE=2000 # Equivalent to SAVEHIST
export HISTCONTROL=ignorespace # Equivalent to setopt hist_ignore_space
# Misc options
shopt -s autocd # Equivalent to setopt autocd
# Disable Beep
bind 'set bell-style none'
# Aliases that significantly change function
alias cp="cp -iv"
alias mv="mv -iv"
alias rm="rm -Iv"
alias mkdir="mkdir -pv"
# Juice Aliases
alias ls='ls -hN --color=auto --group-directories-first'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias ip='ip -color=auto'
alias tree='tree --gitignore -I .git'
# Flow control
stty -ixon
RESET='\[\e[0m\]'
BOLD='\[\e[1m\]'
COLOR_USER='\[\e[38;5;153m\]'
COLOR_DIR='\[\e[38;5;47m\]'
COLOR_GIT='\[\e[38;5;105m\]'
COLOR_END='\[\e[38;5;15m\]'
PS1="${BOLD}${COLOR_USER}\u ${COLOR_DIR}\w ${COLOR_GIT}\$(git-ps1)${COLOR_END}$ ${RESET}"
|