diff options
| author | jason | 2021-12-16 10:05:16 -0700 |
|---|---|---|
| committer | jason | 2021-12-16 10:05:16 -0700 |
| commit | 5f9e44bd20d1f0f93397f372b210b91d73e40927 (patch) | |
| tree | 34f1a2158a5bd7e649ba2b1beeff66acb466c83d /bash | |
| parent | ee9bee1412503e58ad6642db435cfa205ed16a37 (diff) | |
| download | dotfiles-5f9e44bd20d1f0f93397f372b210b91d73e40927.tar.gz dotfiles-5f9e44bd20d1f0f93397f372b210b91d73e40927.zip | |
add pyenv setup
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 11 |
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 @@ | |||
| 1 | LC_ALL="en_US.UTF-8" | ||
| 1 | PS1="[\u@\[\e[38;5;148m\]\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]\$\[\e[m\] " | 2 | PS1="[\u@\[\e[38;5;148m\]\h\[\e[m\]:\[\e[36m\]\W\[\e[m\]\[\e[m\]]\[\e[m\]\$\[\e[m\] " |
| 2 | PATH="${HOME}/bin:${PATH}" | 3 | PATH="${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)" |
| 53 | fi | 54 | fi |
| 54 | 55 | ||
| 56 | # Enable pyenv | ||
| 57 | if [ -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 -)" | ||
| 64 | fi | ||
| 65 | |||
| 55 | # Enable system bash completions | 66 | # Enable system bash completions |
| 56 | # Debian derivative | 67 | # Debian derivative |
| 57 | if [ -f /etc/bash_completion ]; then | 68 | if [ -f /etc/bash_completion ]; then |