Use env value for YADM_* variable if defined
This will let a user define an env variable and commit that into their dotfiles. This removes the need for defining an alias
This commit is contained in:
parent
2848ca2d1d
commit
8b2ce05125
14
yadm
14
yadm
|
@ -22,14 +22,14 @@ fi
|
|||
|
||||
VERSION=1.12.0
|
||||
|
||||
YADM_WORK="$HOME"
|
||||
YADM_DIR="$HOME/.yadm"
|
||||
YADM_WORK=${YADM_WORK:-"$HOME"}
|
||||
YADM_DIR=${YADM_DIR:-"$HOME/.yadm"}
|
||||
|
||||
YADM_REPO="repo.git"
|
||||
YADM_CONFIG="config"
|
||||
YADM_ENCRYPT="encrypt"
|
||||
YADM_ARCHIVE="files.gpg"
|
||||
YADM_BOOTSTRAP="bootstrap"
|
||||
YADM_REPO=${YADM_REPO:-"repo.git"}
|
||||
YADM_CONFIG=${YADM_CONFIG:-"config"}
|
||||
YADM_ENCRYPT=${YADM_ENCRYPT:-"encrypt"}
|
||||
YADM_ARCHIVE=${YADM_ARCHIVE:-"files.gpg"}
|
||||
YADM_BOOTSTRAP=${YADM_BOOTSTRAP:-"bootstrap"}
|
||||
|
||||
HOOK_COMMAND=""
|
||||
FULL_COMMAND=""
|
||||
|
|
Loading…
Reference in New Issue