-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment
64 lines (51 loc) · 1.94 KB
/
environment
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
# vim: set filetype=sh :
# Ensure that XDG-compliant programs know
# where we want to store our configuration files
export XDG_CONFIG_HOME=$CONFIGDIR
export XDG_BIN_HOME=$HOME/.local/bin
export PATH
if [[ $(sysctl -n machdep.cpu.brand_string) =~ "Apple" ]]; then
_P=/opt/homebrew
else
_P=/usr/local
fi
_O=$_P/opt
PATH="$_O/cargo/.bin:$HOME/.local/bin:$_P/bin:$_P/sbin:$_O/ruby/bin:$_O/python3/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PACKAGE_MANAGER_PREFIX=$_P
# Since we are handling the virtual environment information ourselves lets disable the status
export VIRTUAL_ENV_DISABLE_PROMPT=1
export WORKON_HOME=~/.local/opt/virtualenvs
export VIRTUALENVWRAPPER_PYTHON=$PACKAGE_MANAGER_PREFIX/bin/python3
export PIPX_HOME=~/.local/opt/pipx_venvs
# No installing things in the system python
export PIP_REQUIRE_VIRTUALENV=true
# Put Rust in the same place we put other things
RUSTUP_HOME=~/.local/opt/rustup
CARGO_HOME=~/.local/opt/cargo
# Ignore both leading space commands and duplicates
export HISTCONTROL=ignoreboth:erasedups
export HISTSIZE=500000
export HISTFILESIZE=500000
# Record each line as it gets issued
PROMPT_COMMAND='history -a'
export EDITOR=vim
# A better, reasonably fast, less
# Case insensitive search unless the search term has uppers in it
# Put the found search term at the 49% point on the screen
# Output color escape codes raw to the terminal (show colors by default)
export LESS="-i -j.49 -R"
# Grep is better in color
export GREP_OPTIONS='--color=auto'
# Prefer US English and use UTF-8
export LANG="en_US.UTF-8";
export LANGUAGE="en_US.UTF-8";
export LC_ALL="en_US.UTF-8";
export BOOKMARK_DIR=~/.local/opt/cdpath
# `cd` shortcuts via http://unix.stackexchange.com/q/1469/5217
export CDPATH=".:$BOOKMARK_DIR"
# Automatically trim long paths in the prompt (requires Bash 4.x)
PROMPT_DIRTRIM=2
# Turn off NPM package update-notifier
export NO_UPDATE_NOTIFIER=true
# I prefer to run cleanup at my own time
export HOMEBREW_NO_INSTALL_CLEANUP=true