aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorjason2021-12-16 10:05:16 -0700
committerjason2021-12-16 10:05:16 -0700
commit5f9e44bd20d1f0f93397f372b210b91d73e40927 (patch)
tree34f1a2158a5bd7e649ba2b1beeff66acb466c83d /bash
parentee9bee1412503e58ad6642db435cfa205ed16a37 (diff)
downloaddotfiles-5f9e44bd20d1f0f93397f372b210b91d73e40927.tar.gz
dotfiles-5f9e44bd20d1f0f93397f372b210b91d73e40927.zip
add pyenv setup
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 4a24569..f50023b 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -1,3 +1,4 @@
1LC_ALL="en_US.UTF-8"
1PS1="[\u@\[\e[38;5;148m\]\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]\$\[\e[m\] " 2PS1="[\u@\[\e[38;5;148m\]\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]\$\[\e[m\] "
2PATH="${HOME}/bin:${PATH}" 3PATH="${HOME}/bin:${PATH}"
3 4
@@ -52,6 +53,16 @@ if [ -x /opt/homebrew/bin/brew ]; then
52 eval "$(/opt/homebrew/bin/brew shellenv)" 53 eval "$(/opt/homebrew/bin/brew shellenv)"
53fi 54fi
54 55
56# Enable pyenv
57if [ -x /opt/homebrew/bin/pyenv ]; then
58 # Prevent linking against system libpython when building
59 alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
60 export PYENV_ROOT="$HOME/.pyenv"
61 export PATH="$PYENV_ROOT/bin:$PATH"
62 eval "$(pyenv init --path)"
63 eval "$(pyenv init -)"
64fi
65
55# Enable system bash completions 66# Enable system bash completions
56# Debian derivative 67# Debian derivative
57if [ -f /etc/bash_completion ]; then 68if [ -f /etc/bash_completion ]; then