Skip to content

Instantly share code, notes, and snippets.

@noromanba
Forked from raa0121/.bashrc
Created June 16, 2012 19:38
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 noromanba/2942330 to your computer and use it in GitHub Desktop.
Save noromanba/2942330 to your computer and use it in GitHub Desktop.
Switch bashrc settings for Cygwin or MinGW via http://qiita.com/items/cda2d7265f0809796118
sysname=`uname -s | sed -e "s/\([a-zA-Z]\+\).*/\1/"`
if [ "$sysname" = "CYGWIN" ]; then
LANG=ja_JP.UTF-8
elif [ "$sysname" = "MINGW" ]; then
LANG=ja_JP.sjis
JLESSCHARSET="japanese-sjis"
OUTPUT_CHARSET=sjis
fi
#!/usr/bin/bash
# Simulate 'uname -o'
# @author noromanba
# @license Public Domain https://creativecommons.org/licenses/publicdomain/
sysname=`uname -s | sed -e "s/\([a-zA-Z]\+\).*/\1/"`
echo $sysname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment