Skip to content

Instantly share code, notes, and snippets.

@Maki-Daisuke
Created February 27, 2011 17:22
Show Gist options
  • Save Maki-Daisuke/846347 to your computer and use it in GitHub Desktop.
Save Maki-Daisuke/846347 to your computer and use it in GitHub Desktop.
Cygwin-zshを使う場合の設定ファイル例
@echo off
REM VisualStudioの環境変数を設定する
call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
REM CygwinコンソールでWindows式のファイルパスを使ったときに警告を出さない
set CYGWIN=nodosfilewarning
C:
chdir C:\cygwin\bin
REM ログインシェルを起動
C:\cygwin\bin\sh.exe -c "/usr/bin/mintty - &"
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' menu select=2
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' verbose true
zstyle :compinstall filename '/home/maki/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory extendedglob notify
bindkey -e
# End of lines configured by zsh-newuser-install
autoload colors
colors
export PROMPT="%B%{${fg[red]}%}[%n@%m] %/
%# %{${reset_color}%}%b"
alias ls='ls -G'
function open(){
cscript //Nologo C:/usr/bin/open.js `cygpath -wd $@`
}
for ( var i=0; i < WScript.Arguments.Length; i++ ) {
shell = WScript.CreateObject("WScript.Shell");
shell.Run(WScript.Arguments(i));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment