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

Add XDG_CONFIG_HOME as possible source for theme files #40

Merged
merged 2 commits into from
Jul 26, 2020

Conversation

LordFlashmeow
Copy link
Contributor

Here's a potential solution to #25. I copied what I could from bat here:

https://github.com/sharkdp/bat/blob/62014c1094470833b2b72179d3f1bf7f803404e3/src/bin/bat/directories.rs#L18-L27

The challenge was returning a PathBuf rather than an Option<PathBuf>

I'm still getting the hang of Rust, so I'm not 100% sure on the style—corrections much appreciated!

@LordFlashmeow LordFlashmeow marked this pull request as draft July 6, 2020 23:35
Mac version would create a `PathBuf`, Linux would create `Option<PathBuf>`
@LordFlashmeow LordFlashmeow marked this pull request as ready for review July 7, 2020 00:22
Copy link
Owner

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

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

Looks great - thank you very much!

@sharkdp sharkdp merged commit a6b6c18 into sharkdp:master Jul 26, 2020
@sharkdp sharkdp mentioned this pull request Sep 1, 2020
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.

None yet

2 participants