mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-30 13:44:43 +02:00
Updated edit.ps1
This commit is contained in:
parent
37c70be932
commit
3a1a27a9c2
@ -28,7 +28,7 @@ function TryEditor { param([string]$editor, [string]$path)
|
|||||||
if ($path -eq "" ) { $path = Read-Host "Enter the path to the text file" }
|
if ($path -eq "" ) { $path = Read-Host "Enter the path to the text file" }
|
||||||
if (-not(Test-Path "$path" -pathType leaf)) { throw "Can't access file '$path'" }
|
if (-not(Test-Path "$path" -pathType leaf)) { throw "Can't access file '$path'" }
|
||||||
Write-Host "⏳ Editing '$path' by executing " -noNewline
|
Write-Host "⏳ Editing '$path' by executing " -noNewline
|
||||||
TryEditor "neovim" $path
|
TryEditor "nvim" $path
|
||||||
TryEditor "vim" $path
|
TryEditor "vim" $path
|
||||||
TryEditor "vi" $path
|
TryEditor "vi" $path
|
||||||
TryEditor "nano" $path
|
TryEditor "nano" $path
|
||||||
|
Loading…
Reference in New Issue
Block a user