[ADD][SHELL] Project-local environment w/ localrc

This little script will look at your current working directory and its
parent directories to source local configuration files (very useful for
Python  projects, or the way I build TC with a local PATH pre-pended).

It works relatively well but still is a very fragile solution that
depends on the order in which the shell has sourced its files. Because
the Termite script kept erasing the previous PROMPT_COMMAND value for
Bash I had to change to source it at the beginning of my configuration
file.
This commit is contained in:
Bruno BELANYI 2019-10-19 16:40:46 +02:00
parent 62ce5480bc
commit 67da1d9f6e
4 changed files with 137 additions and 17 deletions

View file

@ -48,4 +48,7 @@ if { [ -n "$BASH_VERSION" ] && shopt -q login_shell; } ||
fi
# Use keychain to handle ssh-agent, in interactive shell too
eval "$(keychain --eval id_rsa --quiet)"
eval "$(keychain --eval id_rsa --eval id_ed25519 --quiet)"
# Use my localrc script to automatically source/unsource local configurations
source ~/.scripts/localrc