Skip to content

Instantly share code, notes, and snippets.

@takehiko
Created January 19, 2014 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takehiko/8510958 to your computer and use it in GitHub Desktop.
Save takehiko/8510958 to your computer and use it in GitHub Desktop.
zsh/screen launcher on Cygwin (32/64 bit) + mintty
#!/bin/sh
# Cygwin (32/64 bit) + mintty + zsh/screen
# 1. Save this file as ~/bin/mintty.sh (if necessary,
# modify environmental variables).
# 2. Create a shortcut for mintty.exe.
# 3. Open the properties of the shortcut and
# append the full pathname of ~/bin/mintty.sh to
# the link.
# 4. Double-click the shortcut!
USER=takehiko
ZDOTDIR=$HOME/.zsh; export ZDOTDIR
CYGWIN=nodosfilewarning; export CYGWIN
LANG=ja_JP.UTF-8; export LANG
LC_ALL=$LANG; export LC_ALL
PATH=/usr/local/bin:/usr/bin:/usr/sbin:$PATH; export PATH
#exec zsh
exec screen -xR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment