by lwerdna · 8y ago · 0 comments
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.