# Cygwin简单使用

使用目的:为了在windows中使用expect指令的一种方式之一

# cygwin下载

https://www.cygwin.com/install.html

img.png

# 安装expect

img_1.png

# idea配置终端

设置位置 File->Setting->Tools->Terminal->Shell path

设置位置 File->Setting->Tools->Terminal->Shell path

Cygwin

"C:\cygwin64\bin\sh" -lic "source ~/.bash_profile; cd ${OLDPWD-.}; bash"

Linux子系统

"C:\Windows\System32\wsl.exe"

完整配置

"C:\cygwin64\bin\sh" -lic "source ~/.bash_profile; cd ${OLDPWD-.}; bash" "C:\Windows\System32\wsl.exe"

image-20240513110310335

效果

image-20240513110424956

更新时间: 2024年8月8日星期四上午9点49分