Switch bashrc settings for Cygwin or MinGW
2835 ワード
via
.bashrcでのCygwinとMinGWの見分け方 #Bash - Qiita
~/.bashrc
c.f. https://gist.github.com/2942330#file_.bashrc
~/.bashrc
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
whereami (Simulate 'uname -o')
c.f. https://gist.github.com/2942330#file_whereami
whereami
#!/usr/bin/bash
sysname=`uname -s | sed -e "s/\([a-zA-Z]\+\).*/\1/"`
echo $sysname
Author And Source
この問題について(Switch bashrc settings for Cygwin or MinGW), 我々は、より多くの情報をここで見つけました https://qiita.com/noromanba/items/cda2d7265f0809796118著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .