-
Notifications
You must be signed in to change notification settings - Fork 352
Packages
Simply moving lf binary to an executable path should be enough in most cases (e.g. /usr/bin/lf).
Optionally, you may also want to consider the followings:
-
Documentation is already bundled in the binary and it can be viewed either using
lf -docfrom the command line or usingdoccommand (default<f-1>) insidelf. If you like to also make it available withmancommand (i.e.man lf), you can movelf.1file to an appropriate man folder (e.g./usr/share/man/man1/lf.1). -
The example configuration
etc/lfrc.examplecontains useful settings which can be used as defaults. You can either move this file to/etc/lf/lfrcto make it directly available or to an alternative path to copy from (e.g./etc/lf/lfrc.exampleor/usr/share/doc/lf/lfrc.example). You may also make changes appropriate for the system (e.g.sed -i '/^cmd trash/ s/mv/mv --backup=numbered/' lfrc.example). -
Example colors and icons files
etc/colors.exampleandetc/icons.examplecontain example settings. You can either move these files to/etc/lf/colors.exampleand/etc/lf/icons.exampleto make them directly available or to an alternative path to copy from (e.g./etc/lf/colors.exampleor/usr/share/doc/lf/colors.exampleand/etc/lf/icons.exampleor/usr/share/doc/lf/icons.example). -
The function
lfcdis provided for common shells that is used to change the working directory on quit.- For fish shell, you can copy
etc/lfcd.fishfile to a vendor function directory to make this function directly available without configuration (e.g./usr/share/fish/vendor_functions.d/lfcd.fish). - For zsh shell, you can copy
etc/lfcd.shfile similarly, though files in site functions directory are not automatically loaded (e.g./usr/share/zsh/site-functions/lfcd.sh). - For bash shell, you can copy
etc/lfcd.shto the profile directory if it exists, though files in profile directory are usually only sourced in login shells (e.g./etc/profile.d/lfcd.sh).
- For fish shell, you can copy
-
Autocompletion scripts are provided for common shells.
- For fish shell, you can copy
etc/lf.fishfile to a vendor function directory to make this function directly available without configuration (e.g./usr/share/fish/vendor_completions.d/lf.fish). - For zsh shell, you can copy
etc/lf.zshfile similarly, though files in site functions directory are not automatically loaded and the script should be renamed_lf(e.g./usr/share/zsh/site-functions/_lf). - For bash shell, you can copy
etc/lf.bashto the completion directory if it exists, though files in profile directory are usually only sourced in login shells (e.g./usr/share/bash-completion/completions/lf).
- For fish shell, you can copy
-
The function
LFis provided inetc/lf.vimto use lf as a file opener in vim. You can copy this file to a runtime path to make this function directly available without configuration (e.g./usr/share/vim/vimfiles/plugin/lf.vim). -
A desktop file is provided as
lf.desktopto add a desktop entry for lf. You can copy this file to an appropriate folder to make it available (e.g./usr/share/applications/lf.desktop).
Package is available in repository.
# apk add lf
The package is available in the extra repository.
# pacman -S lf
The following packages are available in the AUR.
lf is available in Chocolatey.
# choco install lf
And in Scoop.
# scoop install lf
And in Winget.
# winget install gokcehan.lf
Available in official repository.
# eopkg install lf
sysutils/lf is available.
Package is available in repository.
# xbps-install lf
Package is available in Homebrew.
brew install lf
Package is available in repository.
# pkg_add lf
Package is available in copr repository.
# dnf copr enable pennbauman/ports
# dnf install lf