diff options
| author | jason | 2025-07-11 14:51:41 -0600 |
|---|---|---|
| committer | jason | 2025-07-11 14:51:41 -0600 |
| commit | 473b374f3e6e12de5c5e59aa869c938d87d36378 (patch) | |
| tree | f82e18fecd82c869b3addc57efa82f9b8fbeb25d /bash | |
| parent | dd39f68c811b3555ac5551450670c23ed8c3c298 (diff) | |
| download | dotfiles-473b374f3e6e12de5c5e59aa869c938d87d36378.tar.gz dotfiles-473b374f3e6e12de5c5e59aa869c938d87d36378.zip | |
use asdf; gui emacs for $EDITOR
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 4ea5664..40d90ef 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -160,7 +160,7 @@ if [ -x /opt/homebrew/bin/brew ]; then | |||
| 160 | 160 | ||
| 161 | 161 | ||
| 162 | # Enable pyenv | 162 | # Enable pyenv |
| 163 | if [ -x /opt/homebrew/bin/pyenv ]; then | 163 | if [ -x /opt/homebrew/bin/DISALBEDpyenv ]; then |
| 164 | # Prevent linking against system libpython when building | 164 | # Prevent linking against system libpython when building |
| 165 | alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew' | 165 | alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew' |
| 166 | export PYENV_ROOT="$HOME/.pyenv" | 166 | export PYENV_ROOT="$HOME/.pyenv" |
| @@ -206,6 +206,12 @@ alias workon=__workon | |||
| 206 | alias mkvirtualenv=__mkvirtualenv | 206 | alias mkvirtualenv=__mkvirtualenv |
| 207 | 207 | ||
| 208 | # Enable asdf (virtual environments) | 208 | # Enable asdf (virtual environments) |
| 209 | ASDF=`which asdf 2> /dev/null` | ||
| 210 | if [ -x "$ASDF" ]; then | ||
| 211 | export ASDF_DATA_DIR="$HOME/.asdf" | ||
| 212 | export PATH="$ASDF_DATA_DIR/shims:$PATH" | ||
| 213 | . <(asdf completion bash) | ||
| 214 | fi | ||
| 209 | # This conflicts with pyenv, which i tend to prefer. | 215 | # This conflicts with pyenv, which i tend to prefer. |
| 210 | # As a result this should be enabled per-project via direnv | 216 | # As a result this should be enabled per-project via direnv |
| 211 | # echo ". /opt/homebrew/opt/asdf/libexec/asdf.sh" >> .envrc | 217 | # echo ". /opt/homebrew/opt/asdf/libexec/asdf.sh" >> .envrc |
| @@ -281,7 +287,7 @@ fi | |||
| 281 | #EMACS_SERVER_SOCKET="${TMPDIR:-/tmp}/emacs$(id -u)/server" | 287 | #EMACS_SERVER_SOCKET="${TMPDIR:-/tmp}/emacs$(id -u)/server" |
| 282 | #EDITOR="emacsclient -s ${EMACS_SERVER_SOCKET}" | 288 | #EDITOR="emacsclient -s ${EMACS_SERVER_SOCKET}" |
| 283 | 289 | ||
| 284 | export EDITOR='emacsclient -nw' | 290 | export EDITOR='emacsclient -c' |
| 285 | alias e="${EDITOR}" | 291 | alias e="${EDITOR}" |
| 286 | 292 | ||
| 287 | # History settings | 293 | # History settings |