From 7c4ed4b91176c4ae3c21e811329882e9572f36ae Mon Sep 17 00:00:00 2001 From: josiah Date: Mon, 19 Jul 2021 20:31:29 -0500 Subject: [PATCH] Prep for testing pyenv/pipenv. --- .bashrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index a5c2d05..0e685a9 100644 --- a/.bashrc +++ b/.bashrc @@ -3,7 +3,7 @@ shopt -s nocaseglob # glob filenames case-insensitively shopt -s histappend # append history to history file, don't overwrite. shopt -s checkwinsize # fix line wrap issues - +nn set completion-ignore-case on # ignore case when tab-completing @@ -73,6 +73,16 @@ eval $(keychain --eval --quiet ~/.ssh/{awful-git,github,digitalocean,home-net}) if [ "$HOSTNAME" = "nixon" ]; then printf 'on nixon, applying nixOS config' setxkbmap -option "ctrl:nocaps" +else + printf 'regular config\n' +fi + +# use pyenv where appropriate: +if [ "$HOSTNAME" = "popling" ]; then + printf 'on home, applying home config' + export PATH="$HOME/.pyenv/bin:$PATH" + eval "$(pyenv init -)" + eval "$(pyenv virtualenv-init -)" else printf 'regular config' fi