mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
(chore): nano: Better syntax
This commit is contained in:
parent
b54cc68e5d
commit
54ac67b397
@ -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."
|
||||
@ -17,8 +16,10 @@
|
||||
"$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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user