]> arthur.barton.de Git - ax-zsh.git/commitdiff
New "gcc" plugin
authorAlexander Barton <alex@barton.de>
Fri, 1 Feb 2019 08:44:11 +0000 (09:44 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 1 Feb 2019 08:44:11 +0000 (09:44 +0100)
At the moment, this only enables colored compiler warning messages.

plugins/gcc/README.md [new file with mode: 0644]
plugins/gcc/gcc.zprofile [new file with mode: 0644]

diff --git a/plugins/gcc/README.md b/plugins/gcc/README.md
new file mode 100644 (file)
index 0000000..aa71e41
--- /dev/null
@@ -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 (file)
index 0000000..40396eb
--- /dev/null
@@ -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