Skip to content

Instantly share code, notes, and snippets.

@mcorrigan
Created June 3, 2024 14:41
Show Gist options
  • Save mcorrigan/11e2ac818d5ec8a0b9d9da6e07ffe702 to your computer and use it in GitHub Desktop.
Save mcorrigan/11e2ac818d5ec8a0b9d9da6e07ffe702 to your computer and use it in GitHub Desktop.
vi and nano in Powershell (using WSL under)
function vi ($File){
$File = $File -replace "\\", "/" -replace " ", "\ "
bash -c "vi $File"
}
function nano ($File){
$File = $File -replace "\\", "/" -replace " ", "\ "
bash -c "nano $File"
}
@mcorrigan
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment