-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
95 lines (68 loc) · 2.1 KB
/
.bashrc
File metadata and controls
95 lines (68 loc) · 2.1 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# NOTE: On Debian GNU/Linux edit the file /etc/bash.bashrc and uncomment
# the code fragment which enables Bash completion in interactive shells.
# Load common shell stuff.
if [ -f "$HOME/.shrc" ]; then
. "$HOME/.shrc"
fi
# Ignore duplicate lines in history.
HISTCONTROL=ignoredups
# Set file history size.
HISTFILESIZE=10000
# Append to the history file, don't overwrite it.
shopt -s histappend
# Check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# Enable "**" patern in a pathname expansion content, which will
# match all files and zero or more directories and subdirectories.
shopt -s globstar
# Enable terminal color output.
if [ $(command -v tput) ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
# Set prompt.
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# CUSTOM BASH FUNCTIONS, ALIASES AND BINDINGS
alias dotver='cat $HOME/.dotfiles_version'
# Custom Bash functions
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
# Custom Bash aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Custom Bash bindings
if [ -f ~/.bash_bindings ] && [[ $- == *i* ]]; then
. ~/.bash_bindings
fi
# Custom LOCAL Bash functions
if [ -f ~/.bash_functions.local ]; then
. ~/.bash_functions.local
fi
# Custom LOCAL Bash aliases
if [ -f ~/.bash_aliases.local ]; then
. ~/.bash_aliases.local
fi
# Custom LOCAL Bash bindings
if [ -f ~/.bash_bindings.local ] && [[ $- == *i* ]]; then
. ~/.bash_bindings.local
fi