Created
June 3, 2024 14:41
-
-
Save mcorrigan/11e2ac818d5ec8a0b9d9da6e07ffe702 to your computer and use it in GitHub Desktop.
vi and nano in Powershell (using WSL under)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vi ($File){ | |
$File = $File -replace "\\", "/" -replace " ", "\ " | |
bash -c "vi $File" | |
} | |
function nano ($File){ | |
$File = $File -replace "\\", "/" -replace " ", "\ " | |
bash -c "nano $File" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
find location: echo $Profile
Source:
https://medium.com/powershell-explained/text-editor-inside-powershell-22d2f5e748b8