Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify install script, add post install instructions
- Loading branch information
1 parent
472bf13
commit 38efc65
Showing
5 changed files
with
75 additions
and
129 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include README.md | ||
include POST_INSTALL_INSTRUCTIONS.txt | ||
include goto/*.py | ||
include bin |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Congratulations - you got goto! | ||
|
||
Now there is one last step to let it do it's magic, always. | ||
|
||
|
||
run this command: | ||
install_goto | ||
|
||
|
||
(Or you could manually add this to your .rc file: source start_goto) |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
. _gotoutils # load common utils | ||
|
||
|
||
|
||
echo Step 1: Setting up magic data folder in ${HOME}/.goto | ||
MAGICPATH="${HOME}/.goto" | ||
if [[ ! -d "$MAGICPATH" ]]; then | ||
mkdir "${HOME}/.goto" || check_status | ||
mkdir "${HOME}/.goto/projects" || check_status | ||
touch "${HOME}/.goto/active-project" || check_status | ||
fi | ||
|
||
|
||
echo Step 2: add goto startup script to bash config file | ||
if [ -f "${HOME}/.bash_profile" ]; then | ||
echo | ||
echo "Next step is required to make goto work:" | ||
echo | ||
|
||
if prompt "Add goto startup script to .bash_profile? [y|n]: "; then | ||
echo | ||
echo "source start_goto" >> "${HOME}/.bash_profile" || check_status | ||
else | ||
echo | ||
echo "If you want to do this manually add the line 'source start_goto' to your .bash_profile" | ||
fi | ||
else | ||
echo "~/.bash_profile does not exist" | ||
echo | ||
echo "To make goto function properly, add this line to your bash config file: " | ||
echo | ||
echo " source start_goto" | ||
echo | ||
echo "into one of these (.bashrc | .profile | .bash_profile)" | ||
|
||
if prompt "Want to append to .bashrc? [y|n]: "; then | ||
echo "source start_goto" >> "${HOME}/.bashrc" || check_status | ||
fi | ||
|
||
fi | ||
|
||
|
||
# make goto ready -- now. | ||
source start_goto || check_status | ||
|
||
# add your first project | ||
project add goto || check_status | ||
|
||
# set the context to this project | ||
project goto || check_status | ||
|
||
# add your first shortcuts | ||
goto add goto https://github.com/technocake/goto || check_status | ||
goto add github https://github.com/technocake/goto || check_status | ||
|
||
|
||
echo Installation Succesful! |
This file was deleted.
Oops, something went wrong.
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