-
Notifications
You must be signed in to change notification settings - Fork 329
Icons
Icons support is experimental and likely to change in the future.
You can enable icons by enabling icons
option (i.e. set icons
).
By default there are only two icons defined for files (i.e. π
) and directories (i.e. π
).
If these icons are not displayed properly, you may need to change to a different font with a more complete unicode coverage.
Icons for different files can be configured using $LF_ICONS
variable.
Syntax for this variable is the same as $LS_COLORS
variable.
You can define icons for different file names and types using this variable.
Below is an example configuration that you can use as a start.
You need to define and export this variable in your shell configuration file (e.g. ~/.bashrc
).
You may want to keep it in a separate file and source it in your shell configuration file (e.g. [ -f "/path/to/icons" ] && source "/path/to/icons"
).
You also need to have Nerd Fonts installed in your system for the following to work.
export LF_ICONS="\
tw=ο:\
st=ο:\
ow=ο:\
dt=ο:\
di=ο:\
fi=ο:\
ln=ο:\
or=ο:\
ex=ο§:\
*.c=ξ:\
*.cc=ξ:\
*.clj=ξ¨:\
*.coffee=ξ:\
*.cpp=ξ:\
*.css=ξ:\
*.d=ξ―:\
*.dart=ξ:\
*.erl=ξ±:\
*.exs=ξ:\
*.fs=ξ§:\
*.go=ξ§:\
*.h=ξ:\
*.hh=ξ:\
*.hpp=ξ:\
*.hs=ξ·:\
*.html=ξ:\
*.java=ξΈ:\
*.jl=ξ€:\
*.js=ξ:\
*.json=ξ:\
*.lua=ξ :\
*.md=ξ:\
*.php=ξ:\
*.pl=ξ©:\
*.pro=ξ‘:\
*.py=ξΌ:\
*.rb=ξΉ:\
*.rs=ξ¨:\
*.scala=ξ·:\
*.ts=ξ¨:\
*.vim=ξ«:\
*.cmd=ο:\
*.ps1=ο:\
*.sh=ο:\
*.bash=ο:\
*.zsh=ο:\
*.fish=ο:\
*.tar=ο:\
*.tgz=ο:\
*.arc=ο:\
*.arj=ο:\
*.taz=ο:\
*.lha=ο:\
*.lz4=ο:\
*.lzh=ο:\
*.lzma=ο:\
*.tlz=ο:\
*.txz=ο:\
*.tzo=ο:\
*.t7z=ο:\
*.zip=ο:\
*.z=ο:\
*.dz=ο:\
*.gz=ο:\
*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