-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
105 lines (85 loc) · 2.73 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# vim: set ft=sh :
# Are we on a Mac?
if [[ "$HOME" =~ /Users/* ]]; then
JPMELOS_IS_MACOS="true"
else
JPMELOS_IS_MACOS="false"
fi
#################
# #
# Imports #
# #
#################
[[ -f ~/.bash_fields.sh ]] && source ~/.bash_fields.sh
##############################
# #
# Environment-specific #
# #
##############################
# Set the PATH. Things are always prepended, so the last entry to be entered
# here is the one with the highest priority.
# Binaries installed by Homebrew.
if [[ $JPMELOS_IS_MACOS == "true" ]]; then
field_prepend PATH /opt/homebrew/bin
fi
# Binaries not managed via a package manager.
field_prepend PATH "$HOME/.local/bin"
# Rust tooling's own binaries.
field_prepend PATH "$HOME/.cargo/bin"
# pyenv's own binaries.
field_prepend PATH "$HOME/.pyenv/bin"
# My own executables.
field_prepend PATH "$HOME/bin"
export PATH
################################
# #
# Terminal configuration #
# #
################################
export TERMINFO_DIRS=$HOME/.local/share/terminfo:$TERMINFO_DIRS
#############################
# #
# Bash-specific stuff #
# #
#############################
# How many commands to keep in history.
export HISTSIZE=100000
export HISTFILESIZE=$HISTSIZE
# Erase all duplicate lines, don't store lines starting with space.
export HISTCONTROL=erasedups:ignoreboth
# Persist every command immediately, load new commands.
export PROMPT_COMMAND="history -a; history -n; run_autoenv_on_init; ${PROMPT_COMMAND}"
########################
# #
# Work utilities #
# #
########################
# Sets the default editor for various commands.
export EDITOR=nvim
# Configure ripgrep to use a configuration file.
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
###############################
# #
# Python-specific stuff #
# #
###############################
# Make Pip require a virtual environment to install stuff. Do not pollute
# the system.
export PIP_REQUIRE_VIRTUALENV=true
# No need to show the current virtual environment in the prompt, since we'll
# use Starship for that.
export VIRTUAL_ENV_DISABLE_PROMPT=1
# Indicate where the pyenv root is.
export PYENV_ROOT=$HOME/.pyenv
#########################
# #
# Other utilities #
# #
#########################
export OP_ACCOUNT=my.1password.com
##########################
# #
# Source ~/.bashrc #
# #
##########################
source ~/.bashrc