-
Notifications
You must be signed in to change notification settings - Fork 8
/
bashrc
48 lines (38 loc) · 1.25 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
46
47
48
# Setup environment, common to both bash and zsh
shopt -s expand_aliases
# Return if not interactive
[[ $- != *i* ]] && return
# Where are my dotfiles
export DOTFILES=~/dotfiles
# Source bash completion scripts
for bcfile in $DOTFILES/bash_completion.d/* ; do
[ -f "$bcfile" ] && . $bcfile
done
# Check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# Use case-insensitive filename globbing.
shopt -s nocaseglob
### Append to the history file
export HISTCONTROL=ignoreboth:erasedups
export HISTSIZE=10000
export HISTFILESIZE=10000
export HISTIGNORE="exit:history:ls"
# LANG
export LANG="C"
export LC_COLLATE="C"
export LC_CTYPE="C"
export LC_MESSAGES="C"
export LC_MONETARY="C"
export LC_NUMERIC="C"
export LC_TIME="C"
export LC_ALL="C"
# FZF
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
[ -f $DOTFILES/environment.sh ] && . $DOTFILES/environment.sh
[ -f $DOTFILES/bash_prompt ] && . $DOTFILES/bash_prompt
[ -f $DOTFILES/git-completion.bash ] && . $DOTFILES/git-completion.bash
# Device specific settings should be in .bashrc_local
if [[ -f ~/.bashrc_local ]]; then source ~/.bashrc_local; fi
# Work related settings should be in .bashrc_work
if [[ -f ~/.bashrc_work ]]; then source ~/.bashrc_work; fi