Merge branch 'master' of github.com:xlogerais/config-bash

This commit is contained in:
2021-05-02 21:45:19 +02:00
2 changed files with 0 additions and 0 deletions

12
rc.d/asdf Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ -f ~/.asdf/asdf.sh ]
then
# activate asdf
source ~/.asdf/asdf.sh
# activate completion
source ~/.asdf/completions/asdf.bash
fi

24
rc.d/direnv Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
if ( which asdf &> /dev/null )
then
if ( asdf which direnv &> /dev/null )
then
# Hook direnv into your shell.
eval "$(asdf exec direnv hook bash)"
# A shortcut for asdf managed direnv.
direnv() { asdf exec direnv "$@"; }
return
fi
elif ( which direnv &> /dev/null )
then
# Hook direnv into your shell.
eval "$(direnv hook bash)"
fi