Skip to content

Instantly share code, notes, and snippets.

@yosske
yosske / echoColor.sh
Created June 21, 2016 15:50
Like echo, but in the --color that grep uses when that option is given
#!/bin/sh
#handle no input - just fire echo and exit
if [ "$#" -eq 0 ]; then
echo
exit
fi
#concat params like echo does
str="$1"
@yosske
yosske / vimp.sh
Last active June 21, 2016 15:53
vimp stands for "vim pipe" and can be used to "pipe" filenames into the vim editor
#!/bin/sh
xargs bash -c '</dev/tty vim "$@"' ignoredparam
exit 0