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

Modified paths to work on xdg-config-dirs, complying with xdg standard #417

Closed
wants to merge 5 commits into from

Conversation

ndrew222
Copy link

@ndrew222 ndrew222 commented Oct 6, 2023

As the pull request title says, just changes the paths.
Also fixes one error on nano blaming line 26 of nanorc.nanorc
Hope it helps. Literally my first PR

andrew added 5 commits October 6, 2023 12:03
…to comply with xdg standards""

This reverts the reverted commit because I am literally figuring out how to use git right now.
Anyway, this removes a line because nano kept spitting an error saying "Normal has no prefix" or something
@@ -23,7 +23,6 @@ icolor brightblue " brightblue"
icolor brightmagenta " brightmagenta"
icolor brightcyan " brightcyan"
icolor brightwhite " brightwhite"
icolor brightnormal " brightnormal"
Copy link
Contributor

@davidhcefx davidhcefx Feb 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already submitted in: #391
I think we should separate different PR for different issues.

}

_update_nanorc_lite(){
sed -i '/include "\/usr\/share\/nano\/\*\.nanorc"/i include "~\/.nano\/*.nanorc"' "${NANORC_FILE}"
sed -i '/include "\/usr\/share\/nano\/\*\.nanorc"/i include "~\/.conig.\/nano\/*.nanorc"' "${NANORC_FILE}"
Copy link
Contributor

@davidhcefx davidhcefx Feb 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, plus there is extra dot after config

}

NANORC_FILE=~/.nanorc
NANORC_FILE=~/.config\/nano\/nanorc
Copy link
Contributor

@davidhcefx davidhcefx Feb 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is correct to change this to ~/.config/nano/nanorc. Here, it is referencing the nano rcfile under home, which is the default rcfile path. The same issue with line 21.

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

Successfully merging this pull request may close these issues.

2 participants