keg
keg copied to clipboard
How to properly config KEG_CURRENT
I'm trying to encapsulate the keg command to always use my default tag, but I'm having trouble to find out where this directory should be.
I'm using on my default location ~/Repos/
with a directory called brain
and setting KEG_CURRENT=brain keg changes
still gives me error messages as shown below:
https://asciinema.org/a/AIaAXS4DHM79uBqU7K1ViRpNE
Additional info:
- I tested adding the folder
brain
to my PATH - The
Repos
directory is already on my CDPATH
I don't have anything written up on it yet, but you need to add a map
entry for each zet that you are using. Use the k conf edit
for that.
$ zet conf data
map:
zet: ~/Repos/github.com/rwxrob/zet
To keep things simpler, however, I think I should make KEG_CURRENT
able to be a fully qualified path as well as a map reference. After the change you should just need to change KEG_CURRENT
to ~/Repos/...
Oh, ok nice! It works amazingly on keg installed as a binary, but apparently it has problems when I use keg as a subcommand to my main bonzai
Thanks for your help and time, this project is a life changer for my note-taking activities