Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Highlighting does not appear when I sudo [Arch] #383

Open
MacaroniGurl opened this issue Nov 23, 2021 · 1 comment
Open

Syntax Highlighting does not appear when I sudo [Arch] #383

MacaroniGurl opened this issue Nov 23, 2021 · 1 comment

Comments

@MacaroniGurl
Copy link

MacaroniGurl commented Nov 23, 2021

I installed the Syntax Highlighting through curl, and for some reason on Arch Linux it does not appear in sudo nano.

@cvemys
Copy link

cvemys commented Dec 3, 2021

when you run sudo,the program will run as the root user therefore it will search /root for config files instead of your user home directory.so if you need syntax highlighting while running nano as root you can either copy your .nanorc file to /root or use -f option and provide the path to nanorc file.
quoting from nano man page:

-f file, --rcfile=file
Read only this file for setting nano's options, instead of reading both the system-wide and the user's nanorc files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants