Bash function to tangle Org Mode
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
function tangle { | |
path=$(realpath $1) | |
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "'$path'")' | |
} | |
# consider putting it in .bash_profile along with the line below: | |
export -f tangle | |
# USAGE: | |
# $ tangle README.org | |
# $ tangle a/b/README.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment