]> arthur.barton.de Git - ax-zsh.git/commitdiff
New "cygwin" plugin
authorAlexander Barton <alex@barton.de>
Thu, 16 Mar 2017 15:01:56 +0000 (16:01 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 16 Mar 2017 15:03:28 +0000 (16:03 +0100)
Cygwin-specific settings. For now, add some Windows paths to the
Cygwin/ZSH search $PATH.

plugins/cygwin/README.md [new file with mode: 0755]
plugins/cygwin/cygwin.zprofile [new file with mode: 0755]

diff --git a/plugins/cygwin/README.md b/plugins/cygwin/README.md
new file mode 100755 (executable)
index 0000000..e46fb98
--- /dev/null
@@ -0,0 +1,7 @@
+## cygwin
+
+Setup *Cygwin* (https://cygwin.com/) specific configuration.
+
+### Environment
+
+- `$PATH`: Append standard directories of Windows to search path.
diff --git a/plugins/cygwin/cygwin.zprofile b/plugins/cygwin/cygwin.zprofile
new file mode 100755 (executable)
index 0000000..74a3835
--- /dev/null
@@ -0,0 +1,14 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# cygwin.zprofile: Setup CCache environment
+
+[[ -d /cygdrive ]] || return
+
+# Search for directories and apprepend it to "PATH"
+for dir (
+       /cygdrive/c/Windows
+       /cygdrive/c/Windows/System32
+       /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
+); do
+       [[ -d "$dir" ]] && PATH="$PATH:$dir"
+done
+unset dir