-
Notifications
You must be signed in to change notification settings - Fork 4
/
.bash_env
65 lines (56 loc) · 1.66 KB
/
.bash_env
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
# Append to history file
shopt -s histappend
# Store 20,000 history entries
export HISTSIZE=20000
# Don't store duplicates
export HISTCONTROL=erasedups
export RSPEC=true
export AUTOFEATURE=true
export EDITOR=vim
export VISUAL=vim
export GEMDOC=$(\gem environment gemdir)/doc
export LESS=FRX
export LSCOLORS="gxfxcxdxbxegedabagacad"
export CLICOLOR=1
export DISPLAY=:0.0
export LC_CTYPE=en_US.UTF-8
export RI="--format ansi --width 80"
export PGOPTIONS='-c client_min_messages=WARNING'
export PSQL_EDITOR='vim -c"set syntax=sql"'
export GOPATH="$HOME/go"
export GOBIN="$GOPATH/bin"
export BASH_SILENCE_DEPRECATION_WARNING=1
# go
PATH="$PATH:$GOPATH/bin"
# haskell
PATH="$PATH:$HOME/.cabal/bin"
# global node packages
PATH="$PATH:/usr/local/lib/node_modules"
# mysql
PATH="/usr/local/mysql/bin:$PATH"
# heroku CLI
PATH="/usr/local/heroku/bin:$PATH"
# python
PATH="/usr/local/opt/python/libexec/bin:$PATH"
PATH="$HOME/Library/Python/3.7/bin:$PATH"
# rbenv
PATH="$HOME/.rbenv/bin:$PATH"
# homebrew
PATH="/usr/local/bin:$PATH"
# local overrides
PATH="$HOME/bin:$PATH"
export PATH
# Colours
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
GRAY="\[\033[1;30m\]"
MYPS='$(echo -n "${PWD/#$HOME/~}" | awk -F "/" '"'"'{if (length($0) > 14) { if (NF>4) print $1 "/" $2 "/…/" $(NF-1) "/" $NF; else if (NF>3) print $1 "/" $2 "/…/" $NF; else print $1 "/…/" $NF; } else print $0;}'"'"')'
PROMPT_COMMAND=prompt_func
[ ! -f "$HOME/.bash_env.local" ] || source "$HOME/.bash_env.local"