Add direnv support

This commit is contained in:
Loic Nageleisen 2021-07-06 15:01:05 +02:00
parent d52e1d1f82
commit 52e20aca38
Signed by: lloeki
GPG key ID: 971B4D9F125CD31E
5 changed files with 28 additions and 0 deletions

View file

@ -4,6 +4,8 @@
# Hooks
# derived from http://glyf.livejournal.com/63106.html
# TODO: support precmd_functions and chpwd_functions arrays
# default: NOOPs
function preexec { :; }
function precmd { :; }

View file

@ -20,6 +20,7 @@ GIT_PS1_SHOWUNTRACKEDFILES=1
precmd() {
LAST_CMD_RC=$?
_direnv_hook
#clear_incomplete_line
set_prompt
update_terminal_cwd