mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 18:38:19 +02:00
Updated edit.ps1
This commit is contained in:
parent
8cb81aadac
commit
f61be1226a
@ -3,7 +3,7 @@
|
|||||||
Opens a text editor
|
Opens a text editor
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script opens the installed text editor with the given text file.
|
This PowerShell script opens the installed text editor with the given text file.
|
||||||
Supported are: Emacs, Helix, pico, nano, neovim, Notepad, vi, vim, and Wordpad.
|
Supported are: Emacs, Helix, pico, nano, neovim, Notepad, vi, vim, Visual Studio Code and Wordpad.
|
||||||
.PARAMETER path
|
.PARAMETER path
|
||||||
Specifies the path to the text file (default is to query the user to specify it)
|
Specifies the path to the text file (default is to query the user to specify it)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
@ -35,6 +35,7 @@ TryEditor "nano" $path
|
|||||||
TryEditor "pico" $path
|
TryEditor "pico" $path
|
||||||
TryEditor "hx" $path
|
TryEditor "hx" $path
|
||||||
TryEditor "emacs" $path
|
TryEditor "emacs" $path
|
||||||
|
TryEditor "Code.exe" $path
|
||||||
TryEditor "notepad.exe" $path
|
TryEditor "notepad.exe" $path
|
||||||
TryEditor "wordpad.exe" $path
|
TryEditor "wordpad.exe" $path
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
Loading…
Reference in New Issue
Block a user