-
Notifications
You must be signed in to change notification settings - Fork 27
/
bash_profile
70 lines (51 loc) · 2.06 KB
/
bash_profile
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
#!/usr/bin/env bash
export PATH="/usr/local/opt/coreutils/libexec/gnubin:/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:$HOME/go/bin:$HOME/.rvm/bin:$HOME/.npm-packages/bin:$HOME/.bash/bin:$(python3 -m site --user-base)/bin:$HOME/.cargo/bin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export TERM="xterm-256color"
# Set my editor and git editor
export EDITOR="vim"
export GEM_EDITOR="subl"
export BUNDLER_EDITOR="subl"
export BUNDLE_JOBS=8
# Prefer US English and use UTF-8
export LANG='en_US.UTF-8'
export LANGUAGE='en_US'
export LC_CTYPE='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
# history handling
export HISTCONTROL='ignoreboth'
export HISTSIZE=500000
export HISTFILESIZE="${HISTSIZE}"
export AUTOFEATURE=true autotest
# Identify OS and Machine
export OS=`uname -s | sed -e 's/ *//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
export OSVERSION=`uname -r`; OSVERSION=`expr "$OSVERSION" : '[^0-9]*\([0-9]*\.[0-9]*\)'`
export MACHINE=`uname -m | sed -e 's/ *//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
export PLATFORM="$MACHINE-$OS-$OSVERSION"
# Disabling Analytics for homebrew
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_INSTALL_CLEANUP=1
# Disabling some shell-check errors
export SHELLCHECK_OPTS="-e SC1090"
# Adding Support for other OSes
export PREVIEW="less"
[ -s /usr/bin/gloobus-preview ] && export PREVIEW="gloobus-preview"
[ -s /Applications/Preview.app ] && export PREVIEW="/Applications/Preview.app"
# Path to the bash it configuration
export BASH="$HOME/.bash"
export BASH_SILENCE_DEPRECATION_WARNING=1
# Load Bash It
source "$BASH"/bash_it.sh
source "$BASH"/../private/private.env.bash
eval "$(direnv hook bash)"
# Don't check mail when opening terminal.
unset MAILCHECK
# Check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob
# Autocorrect typos in path names when using `cd`
shopt -s cdspell
# append to bash_history if Terminal.app quits
shopt -s histappend