From 53ab47be54ee4a279c3357bb7a2d762a881d1009 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 16 Mar 2017 16:01:56 +0100 Subject: [PATCH] New "cygwin" plugin Cygwin-specific settings. For now, add some Windows paths to the Cygwin/ZSH search $PATH. --- plugins/cygwin/README.md | 7 +++++++ plugins/cygwin/cygwin.zprofile | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 plugins/cygwin/README.md create mode 100755 plugins/cygwin/cygwin.zprofile diff --git a/plugins/cygwin/README.md b/plugins/cygwin/README.md new file mode 100755 index 0000000..e46fb98 --- /dev/null +++ b/plugins/cygwin/README.md @@ -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 index 0000000..74a3835 --- /dev/null +++ b/plugins/cygwin/cygwin.zprofile @@ -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 -- 2.39.2