-
Notifications
You must be signed in to change notification settings - Fork 44
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
Doesn't read umconfig in ~/.um -- Doesn't recognize $UMCONFIG_HOME variable #33
Comments
what does it say for value of the variable?
if you enter the command
|
Here is the output of $ um config 【 ~/test】─╯
Options prefixed by '*' are set in /Users/lucasburns/.config/um/umconfig.
editor = nvim
pager = /usr/local/bin/less
pages_directory = /Users/lucasburns/.um/pages
default_topic = shell
pages_ext = .md Also, after I run export UMCONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/um" and then run Output of $ echo $UMCONFIG_HOME 【 ~/test】─╯
/Users/lucasburns/.config/um Also, I noticed that the first time I ran
and the second time I ran it, it changed to |
Not a Mac person anymore but I have a couple ideas. It looks like UMCONFIG_HOME is getting set to something. But you are using a different location than your OP. $HOME/.config/um or $HOME/um ? It looks like it worked at least once if you got bat for your pager. Did you see the asterisk override on the output? But when you say you ran it the second time, was this just a second invocation of |
Yes, I know it needs to be set in my My export UMCONFIG_HOME="${XDG_CONFIG_HOME}/um" If I export it on the command line, or I export $ echo $XDG_CONFIG_HOME 【 ~opt】─╯
/Users/lucasburns/.config The part on about where it first said I do not know any ruby whatsoever, however, a script that is setup similar to how #!/usr/bin/env ruby
require 'fileutils'
DEFAULT_CONFIG_DIR_REL_PATH = '~/.um'.freeze
config_dir = ENV['UMCONFIG_HOME'] || DEFAULT_CONFIG_DIR_REL_PATH
config_path = File.expand_path(config_dir + '/umconfig')
print config_path Output: $ ./test.rb 【 ~pro/ruby】─╯
/Users/lucasburns/.config/um/umconfig |
I think I found the issue, I see in my first post the line |
Ha! I'm glad it's figured out because I was feeling bad that I didn't have the magic answer. I know Ruby just enough to spell it, so I think we're on par there. Cheers! |
System:
Darwin void.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64 i386 MacBookPro14,1 Darwin
Installed through:
brew
If I set a different pager in
$HOME/.um/umconfig
nothing changes.Also, if I set the environment variable
UMCONFIG_HOME
in my.zshrc
, it doesn't recognize the change and says there are no pages available. I also tried setting it on the command line withexport UMCONFIG_HOME="${XDG_CONFIG_HOME}/um"
and still nothing worked.The text was updated successfully, but these errors were encountered: