In the spirit of https://stackoverflow.com/questions/3349990/code-snippet-managers-for-os-x
What are some good code snippet managers for Linux?
My quick search didn't turn up much. Eclipse, emacs, vim, Kate, and KDevelop all offer their own integrated snippet managers, but I'm looking for something more generic along the lines of CodeCollector or Snippets, ideally with the option of a CLI interface.
Even a pure CLI tool would be acceptable (maybe even preferable).