Markdown TOC - Table of contents generator
zsh
curl -L https://raw.githubusercontent.com/b3z/toc.md/master/toc.sh >> $HOME/.zshrc
Copies given function to .zshrc
. Reload shell afterwards. (Fast way: source ~/.zshrc
)
Pro tip. For bash or whatever you use add this function to your config (e.g. .bashrc).
toc file.md