-
-
Save matthewsimo/6122778 to your computer and use it in GitHub Desktop.
goto & save
This file contains hidden or 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
| function goto { | |
| local item=$1; | |
| if [[ ${item} == '--list' || ${item} == '-l' ]] | |
| then | |
| boom p; | |
| else | |
| cd $(boom echo $item); | |
| fi | |
| } |
This file contains hidden or 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
| function save { | |
| local id=$1; | |
| local place=$(pwd); | |
| boom p $id $place; | |
| } |
Author
Author
Added --list or -l for goto, which instead of taking you somewhere will list out the boom list of places you can goto.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A couple little functions to easily goto & save a path to/from a boom item. Add to your .bashrc or .bash_profile - saves to boom list 'p'.