1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[direnv] simplify

This commit is contained in:
Hyacinthe Cartiaux 2020-05-13 19:01:57 +02:00
parent 3880062e95
commit 5fc6e57ec7

View file

@ -3,7 +3,7 @@
if [ -n "$(which direnv 2>/dev/null)" ]; then
current_shell=$(ps -p $$ | awk '$1 != "PID" {print $(NF)}')
eval "$(direnv hook $(basename $current_shell))" | true
eval "$(direnv hook $current_shell)" || true
# See https://github.com/direnv/direnv/wiki/Python#restoring-the-ps
show_virtual_env() {