Path Resolution Rules

Most path arguments are interpreted relative to $HOME.

  • tildr add .config/nvim/init.lua resolves to $HOME/.config/nvim/init.lua
  • tildr add ~/notes/todo.md resolves from the home shortcut
  • Absolute paths are accepted only if they still point inside $HOME

For init --repo, the repository path may be provided as:

  • ~/... for a home-relative path
  • an absolute path inside $HOME
  • a relative path, which is resolved from the current working directory and must still end up inside $HOME