-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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