From 88fa5537ca0704376aa970b3c84bb253b40d380f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 31 Jul 2021 09:52:27 -0500 Subject: [PATCH] Nano script patches -- copyright removal --- Nano/Install-Nano.bash | 10 ++++++---- Nano/Nano-Syntax-Highlighting/lua.nanorc | 6 ------ Nano/Nano-Syntax-Highlighting/sparql.nanorc | 6 ------ 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Nano/Install-Nano.bash b/Nano/Install-Nano.bash index 452e90c..4d87392 100755 --- a/Nano/Install-Nano.bash +++ b/Nano/Install-Nano.bash @@ -69,16 +69,18 @@ done [[ $(confirmation "Copying *.nanorc files to ${DIRECTORY}, continue (y/N)? ") ]] && exit 1 -[[ $(nano -V | head -n 1 | grep 5.) == "" ]] && error "Nano version is not 5.X, consult nano -V and update nano." +echo "" +echo "It is recommended to update to Nano version 5 if you have not yet... see https://www.nano-editor.org/download.php" +sleep 3; echo "Copying syntax files to ${DIRECTORY}" -cp -R "Nano-Syntax-Highlighting/" "${DIRECTORY}" +cp -R "Nano-Syntax-Highlighting"/* "${DIRECTORY}" NANORC_CONTENT="$(cat ./.nanorc)" -cat <~/.nanorc +cat << EOF > ~/.nanorc ${NANORC_CONTENT} -include ${DIRECTORY}/*.nanorc" +include ${DIRECTORY}/*.nanorc EOF echo "Successfully installed custom nanorc, see ~/.nanorc" diff --git a/Nano/Nano-Syntax-Highlighting/lua.nanorc b/Nano/Nano-Syntax-Highlighting/lua.nanorc index 3ebbeac..bec44ad 100644 --- a/Nano/Nano-Syntax-Highlighting/lua.nanorc +++ b/Nano/Nano-Syntax-Highlighting/lua.nanorc @@ -1,9 +1,3 @@ -// Copyright 2021, Price Hiller - All Rights Reserved -// -// Copying, distribution, usage, or modification of this file or the following source code, via any -// method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com) -// The following file contains proprietary and confidential content - ############################################################################## # # Lua syntax highlighting for Nano. diff --git a/Nano/Nano-Syntax-Highlighting/sparql.nanorc b/Nano/Nano-Syntax-Highlighting/sparql.nanorc index d69145b..932b97e 100644 --- a/Nano/Nano-Syntax-Highlighting/sparql.nanorc +++ b/Nano/Nano-Syntax-Highlighting/sparql.nanorc @@ -1,9 +1,3 @@ -// Copyright 2021, Price Hiller - All Rights Reserved -// -// Copying, distribution, usage, or modification of this file or the following source code, via any -// method is strictly prohibited without the explicit written consent of Price Hiller (philler3138@gmail.com) -// The following file contains proprietary and confidential content - ## SPARQL 1.1 and SPARQL 1.1 UPDATE # syntax "SPARQL" ".*\.(rq|sparql)$"