Where Is the lf File Manager Config?
The lf file manager reads its config from ~/.config/lf/lfrc on every launch, with colors, icons, and preview hooks defined there in shell like syntax.
Last updated
lf keeps everything in one file: ~/.config/lf/lfrc. Options, keybindings, colors, and preview commands all live there in a small shell flavored language. No dconf, no registry, no GUI dialogs.
That single file design makes lf setups trivially portable. Copy lfrc plus any helper scripts to a new machine and the manager behaves identically. Server admins like it for exactly this reason: the file manager carries its config with the dotfiles.
Where lf stores this, by platform
~/.config/lf/lfrc
The entire lf configuration in one file. Create it from the documented example. Previewer definitions and key maps all go here.
Frequently asked questions
Where do I start configuring lf?
Copy the example from the project docs into ~/.config/lf/lfrc and edit from there. Every line is a set or map command plus shell hooks. Reload by restarting lf, since it reads the file at startup only.
How do I enable file previews in lf?
Define a previewer in lfrc mapping file types to commands like cat, bat, or chafa for images. Preview scripts live anywhere on PATH or beside lfrc. The wiki preview examples cover images, archives, and documents.
Notice an outdated path? Let us know.