Created
December 1, 2022 12:05
-
-
Save werenall/0352140cd740e8cf63c933e026b669bc to your computer and use it in GitHub Desktop.
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