Skip to content

Commit 7b69989

Browse files
relastleHiroki-Konishi
authored andcommitted
Update: only use default environment variables when they are not set yet
1 parent 6603dbd commit 7b69989

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shell/pmy.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
export PATH="${GOPATH}/src/github.com/relastle/pmy:${PATH}"
55

66
# Export pmy configuration environment variable
7-
export PMY_RULE_PATH="${GOPATH}/src/github.com/relastle/pmy/resources/pmy_rules_test.json"
8-
export PMY_TAG_DELIMITER="\t"
9-
export PMY_FUZZY_FINDER_DEFAULT_CMD="fzf -0 -1"
7+
export PMY_RULE_PATH=${PMY_RULE_PATH:-"${GOPATH}/src/github.com/relastle/pmy/resources/pmy_rules.json"}
8+
export PMY_TAG_DELIMITER=${PMY_TAG_DELIMITER:-"\t"}
9+
export PMY_FUZZY_FINDER_DEFAULT_CMD=${PMY_FUZZY_FINDER_DEFAULT_CMD:-"fzf -0 -1"}
1010

1111
# Main Function of Pmy
1212
# Args:

0 commit comments

Comments
 (0)