PowerShell から Cygwin へ
Microsoft.PowerShell_profile.ps1 に以下を追記。
function cygwin{
$currentDirectory=C:\cygwin64\bin\cygpath.exe -u $pwd
$cygCmd="cd "+$currentDirectory+" ; exec bash"
C:\cygwin64\bin\mintty.exe /bin/bash -l -c $cygCmd
}
Cygwin から PowerShell へ
.bashrc に以下を追記。
alias powershell='cygstart powershell'