-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving output of blt:alias. (#134)
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
</target> | ||
|
||
<target name="blt:alias" description="Installs the BLT alias for command line usage."> | ||
<!-- @todo Check to see if alias is already present. --> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
grasmash
Author
Contributor
|
||
<echo>BLT can automatically create a Bash alias to make it easier to run BLT tasks.</echo> | ||
<echo>This alias may be created in .bash_profile or .bashrc depending on your system architecture.</echo> | ||
<propertyprompt propertyName="create_alias" defaultValue="y" useExistingValue="true" promptText="Create a bash alias now? (y/n)" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install-alias.sh already checks if the alias is present (see around line 14,
grep 'function blt'
). It's a little hackish but should basically work.