Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for non bash profiles, rename/reformat files
install.js now asks what your shell profile is called, defaulting to .bash_profile. The profile scripts now set an environment var that will be checked on install to prevent double adding to the shell profile. The name of the shell profile is saved in a file in ~/.gotomark so it can be retrieved for uninstall.
- Loading branch information
1 parent
38e51ba
commit 5cbc7c9
Showing
5 changed files
with
92 additions
and
65 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
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,29 @@ | ||
|
||
################## added by gotomark ################ | ||
# # | ||
###### attaches goto command to dogoto printer ###### | ||
# # | ||
function __goto { # | ||
local loc=`dogoto "$@"` # | ||
if [ -d "$loc" ]; then # | ||
cd $loc # | ||
fi # | ||
# | ||
if [ -f "$loc" ]; then # | ||
$EDITOR $loc # | ||
fi # | ||
} # | ||
alias goto=__goto # | ||
# # | ||
########## bash completion for goto command ######### | ||
# # | ||
function _goto { # | ||
local cur=${COMP_WORDS[COMP_CWORD]} # | ||
local opts=`dogoto -m` # | ||
COMPREPLY=( $(compgen -W "$opts" -- $cur) ) # | ||
} # | ||
complete -F _goto goto # | ||
# # | ||
##################################################### | ||
###### https://github.com/whtevn/gotomark ########### | ||
##################################################### |
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
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