mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 09:15:24 +02:00
[direnv] simplify
This commit is contained in:
parent
3880062e95
commit
5fc6e57ec7
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue