From: Alexander Barton Date: Fri, 1 Feb 2019 08:44:11 +0000 (+0100) Subject: New "gcc" plugin X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-zsh.git;a=commitdiff_plain;h=cb27f63d82910325870c15e7132a9db690805501;ds=sidebyside New "gcc" plugin At the moment, this only enables colored compiler warning messages. --- diff --git a/plugins/gcc/README.md b/plugins/gcc/README.md new file mode 100644 index 0000000..aa71e41 --- /dev/null +++ b/plugins/gcc/README.md @@ -0,0 +1,9 @@ +## go + +Enable ZSH *GCC* integration: + +1. Setup colored compiler output. + +### Environment + +- `$GCC_COLORS`: Enable colored compiler output, especially errors & warnings. diff --git a/plugins/gcc/gcc.zprofile b/plugins/gcc/gcc.zprofile new file mode 100644 index 0000000..40396eb --- /dev/null +++ b/plugins/gcc/gcc.zprofile @@ -0,0 +1,8 @@ +# AX-ZSH: Alex' Modular ZSH Configuration +# gcc.zprofile: Setup GNU Compiler Collection (GCC) environment. + +# Make sure that "go(1)" is installed +(( $+commands[gcc] )) || return + +GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +export GCC_COLORS