Skip to content

Commit

Permalink
Merge pull request #78 from doron-cohen/remove-init-var
Browse files Browse the repository at this point in the history
fix: remove init var check (#70)
  • Loading branch information
doron-cohen authored Dec 13, 2020
2 parents 29e3ef2 + 32f26a3 commit 27113ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
11 changes: 4 additions & 7 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ var initCmd = &cobra.Command{
aliasFilePath, err := utils.GetAliasFile()
tui.FatalIfError("Failed to get alias file path", err)

tui.Print(`if [[ "$ANTIDOT_INIT" != "1" ]]; then
%s
source %s
source %s
tui.Print(`%s
export ANTIDOT_INIT=1
fi`,
utils.IndentLines(utils.XdgVarsExport()),
source %s
source %s`,
utils.XdgVarsExport(),
envFilePath,
aliasFilePath,
)
Expand Down
14 changes: 0 additions & 14 deletions internal/utils/text.go

This file was deleted.

0 comments on commit 27113ee

Please sign in to comment.