-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
62 lines (51 loc) · 1.37 KB
/
.bashrc
File metadata and controls
62 lines (51 loc) · 1.37 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
## History related settings
shopt -s histappend # Append to history file
HISTCONTROL=ignoreboth # Ignore commands that begin with space/are duplicate
HISTSIZE=5000 # Maximum commands to save in history file
HISTFILESIZE=10000 # Maximum number of lines to save
# Autocorrect cd typos
shopt -s cdspell
# Check width of term and adjust (if window size changes) after each command.
shopt -s checkwinsize
# Logged in via ssh?
if [ -n "$SSH_CLIENT" ]
then
REMOTE_PS1="(ssh)"
fi
# Colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# Enable bash 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
# Include custom bash functions
if [ -f ~/.bash/functions ]
then
. ~/.bash/functions
fi
# Some more bashrc
if [ -f ~/.bash/bashrc ]
then
. ~/.bash/bashrc
fi
# Include the contents of `.bash_aliases'
if [ -f ~/.bash_aliases ]
then
. ~/.bash_aliases
fi
# Get battery status asynchronously
get_battery_percent_to_file &
disown "%get_battery_percent_to_file"
# My Personal aliases
if [ -f ~/.bash/aliases ]
then
. ~/.bash/aliases
fi
# Include your personal scripts and confs here
# This file won't be overwritten by the update script
if [ -f ~/.bash/personal ]
then
. ~/.bash/personal
fi