Created
May 6, 2017 14:06
-
-
Save dhyegocalota/f96b1c0cb5fe485f1d6440fef8ef5631 to your computer and use it in GitHub Desktop.
Syntax Highlight
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom functions | |
function light() { | |
if [ -z "$2" ] | |
then src="pbpaste" | |
else | |
src="cat $2" | |
fi | |
$src | highlight -O rtf --syntax $1 --style solarized-light --font-size 18 | pbcopy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment