[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:
parent
62ce5480bc
commit
67da1d9f6e
4 changed files with 137 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue