Hey everyone
I just wanted to drop in and share with you a few things I’ve found helped me with using Johnny.Decimal and the terminal in a very productive way.
I’m liking vimwiki a lot, but that’s probably only relevant to the people using vim already.
The simplest and most fun one is this: I keep my projects in different folders. Some’re in dropbox, some in iCloud etc. I like the setup because it allows me to store (and sync) things where I need them. However, the pats can be quite long to time out. Before using any of the scripts suggested in the forum and on the website, I found a variable called CDPATH
, and it is glorious. It’s basically PATH
, but for your cd
command.
So I can simply add all my Johnny.Decimal folders to my CDPATH
and find them wherever I am on my machine. This is, what it looks like in my ~/.zshrc
##########
# CDPATH #
##########
# https://www.theunixschool.com/2012/04/what-is-cdpath.html
# https://www.howtoforge.com/tutorial/linux-command-line-tips-tricks-part-3-cdpath/
if [[ -o interactive ]]; then
# Make sure the current directory is used first
export CDPATH="."
# Add Johnny.Decimal from iCloud
export CDPATH="$CDPATH:$HOME/Library/Mobile Documents/com~apple~CloudDocs/Documents"
# Add Johnny.Decimal from DropBox
export CDPATH="$CDPATH:$HOME/Dropbox/Johnny.Decimal"
fi
What did you find helpful in your setup?