-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·67 lines (54 loc) · 1.62 KB
/
Copy pathbashrc
File metadata and controls
executable file
·67 lines (54 loc) · 1.62 KB
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
57
58
59
60
61
62
63
64
65
66
67
if [ -f ~/.bashrc.before ]; then
. ~/.bashrc.before
fi
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# bash history
HISTCONTROL=ignoredups:ignorespace
HISTSIZE=100
HISTFILESIZE=$HISTSIZE
shopt -s histappend
shopt -s checkwinsize # check window size after each command
shopt -s dotglob # make asterisk (*) match hidden files too
# bash colors
if [ $TERM = "xterm" ]; then
export TERM=xterm-256color
elif [ $TERM = "screen" ]; then
export TERM=screen-256color
elif [ $TERM = "putty" ]; then
export TERM=putty-256color
elif [ $TERM = "rxvt" ]; then
export TERM=rxvt-256color
elif [ $TERM = "konsole" ]; then
export TERM=konsole-256color
elif [ $TERM = "gnome" ]; then
export TERM=gnome-256color
fi
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# aliases
if [ -f ~/.bash/bash_aliases ]; then
. ~/.bash/bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
export EDITOR=vim
export SHELL=/bin/bash
# CLI look
source ~/.bash/bin/git/git-completion.bash
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export PS1="\[\e[1;30m\]\A \w\[\e[m \]\$($(cat ~/.bash/bin/git/git-ps1/git-ps1.sh))"
# functions
if [ -f ~/.bash/bash_functions ]; then
. ~/.bash/bash_functions
fi
PATH="$HOME/.bash/bin:$PATH"
bind '"\C-i": menu-complete'
if [ -f ~/.bashrc.after ]; then
. ~/.bashrc.after
fi