Skip to content

Instantly share code, notes, and snippets.

@michaelstephens
Created February 25, 2016 20:14
Show Gist options
  • Save michaelstephens/2b778eccb56c964dd13f to your computer and use it in GitHub Desktop.
Save michaelstephens/2b778eccb56c964dd13f to your computer and use it in GitHub Desktop.
export UDE_PATH=/path/to/your/ude
function atom-ude() {
local pth="$(find $UDE_PATH -depth -maxdepth 2 -name "*$1*" | head -n 1)"
if [ -z "$pth" ]; then
echo "$1 not found.";
else
echo "Found: $pth"
atom $pth
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment