From 54ac67b3970f9fa01e4c4cd72e21ac0378df0d91 Mon Sep 17 00:00:00 2001 From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Date: Wed, 1 Feb 2023 09:57:30 +0530 Subject: [PATCH] (chore): nano: Better syntax --- bucket/nano.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bucket/nano.json b/bucket/nano.json index 4880338b10..c83bc52e70 100644 --- a/bucket/nano.json +++ b/bucket/nano.json @@ -4,7 +4,6 @@ "homepage": "https://www.nano-editor.org/", "license": "GPL-3.0-only", "notes": [ - "Configure nano interface, colors, key assignments and more by typing nano ~/.nanorc", "Default folders have been updated, no custom setting has been modified. Find a backup of", "the old config file at \"$dir\\.nanorc.bak\"", "Visit https://github.com/okibcn/nano-for-windows for more information." @@ -13,12 +12,14 @@ "hash": "92ad91f7178edfb343e28984ef591a9b7368dc8ab84a6fa3657e684fec1b2231", "bin": "nano.exe", "pre_install": [ - "$arch=if ($architecture -match '64') {'x86_64'} else {'i686'}", - "$scoopdir=$scoopdir -replace '\\\\','/'", - "if (-not (Test-Path ~/.nanorc)){", + "$arch = if ($architecture -match '64') {'x86_64'} else {'i686'}", + "$scoopdir = $scoopdir -replace '\\\\','/'", + "if (-not (Test-Path ~/.nanorc)) {", " Move-Item \"$dir/.nanorc\" ~/.nanorc", - " Add-Content ~/.nanorc \"include `\"$scoopdir/apps/nano/current/syntax/*.nanorc`\"\"}", - "else{Copy-Item ~/.nanorc \"$dir/.nanorc.bak\"}", + " Add-Content ~/.nanorc \"include `\"$scoopdir/apps/nano/current/syntax/*.nanorc`\"\"", + "} else {", + " Copy-Item ~/.nanorc \"$dir/.nanorc.bak\"", + "}", "Move-Item \"$dir/pkg_$arch-w64-mingw32/bin/*\" \"$dir\"", "Move-Item \"$dir/pkg_$arch-w64-mingw32/share/nano\" \"$dir/syntax\" -Force", "Remove-Item \"$dir/pkg*\" -Force -Recurse",