min117の日記

初期desireもち。趣味Mac,メインFedora,仕事xp。

Windows 10 InsiderPreview Build 14316 .bashrcを確認

 

Windows10のbashが実用か試し中。alias切って使い勝手よくする。

コマンドプロンプト起動→bash と入力してBashを起動。プロンプトは#だから、最初から管理者になっている。

# pwd

# cd ~

# cat .bashrc

f:id:min117:20160423213841p:plain

Dropbox経由でRaspberryPi3の.bashrc持ってきてまんまコピペする。utf8がsjisになるから、RaspberryPi3のほうのnkf文字コードsjisに、改行コードをCR+LFにする。

### RasPi3

# nkf -Lw -sjis pi3_bashrc_20160423.txt >> pi3_bashrc_20160423_sjis.txt

Win10のほうのnotepad で pi3_bashrc_20160423_sjis.txt を開く。

f:id:min117:20160423214335p:plain

これをコピペすれば完成。

notepad でやってみる。Windows10ネイティブのBashというくらいだから、Windowsのバイナリを叩けるのかな?と試す。

# notepad .bashrc

f:id:min117:20160423220155p:plain

エラーになった。

The program 'notepad' is currently not installed. You can install it by typing:

apt-get install wine1.6

いやWindowsなのにwine1.6 を入れろとか…

WindowsLinux入れてwineとか、何か本末転倒じゃないのか…

apt-getでwineを入れる。

f:id:min117:20160423220415p:plain

これもエラーになった。

Windows10、Bash搭載とはいえ、まだまだな印象。