Skip to content

Instantly share code, notes, and snippets.

@matthewsimo
Last active October 9, 2019 14:45
Show Gist options
  • Select an option

  • Save matthewsimo/6122778 to your computer and use it in GitHub Desktop.

Select an option

Save matthewsimo/6122778 to your computer and use it in GitHub Desktop.
goto & save
function goto {
local item=$1;
if [[ ${item} == '--list' || ${item} == '-l' ]]
then
boom p;
else
cd $(boom echo $item);
fi
}
function save {
local id=$1;
local place=$(pwd);
boom p $id $place;
}
@matthewsimo
Copy link
Copy Markdown
Author

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'.

@matthewsimo
Copy link
Copy Markdown
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