use env variables to find home folder

This commit is contained in:
MorganGeek 2020-07-03 11:31:33 +02:00
parent 967fd46455
commit 1b5dbc0aa8
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
[help]
autocorrect = -1 # not more git psuh
[init]
templateDir = /Users/morganwattiez/.git-template
templateDir = ~/.git-template
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
[diff]

View File

@ -1,4 +1,4 @@
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/Users/morganwattiez/.sdkman"
[[ -s "/Users/morganwattiez/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/morganwattiez/.sdkman/bin/sdkman-init.sh"
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"