News for hackers. Stuff that matters.
Re:Show HN: Snibox – Self-hosted snippets manager by lwerdna on Wednesday July 04, 2018 @01:50PM (#17458550)
Really well done, I like the tags and organization.

Here's a low-tech alternative for .bashrc:

    snipc() {
    	local fpath=$HOME/workspace/snippets.c
    	if [ "$1" == "vim" ]; then
    		gvim $fpath
    	else
    		less $fpath
    	fi
    }
Replace vim with your favorite editor. I also have functions for python (snippy), Make (snipmake), etc.
Re:Show HN: Snibox – Self-hosted snippets manager by jamietanna on Sunday July 08, 2018 @07:38AM (#17483297)
Try using `$EDITOR` instead of an argument as that's a more standard env variable to specify preferred editor!