Skip to content

Instantly share code, notes, and snippets.

@LIttleAncientForestKami
Last active January 2, 2023 22:11
Show Gist options
  • Save LIttleAncientForestKami/62431ee8a8b5e7d76dc78b0cbc47edcb to your computer and use it in GitHub Desktop.
Save LIttleAncientForestKami/62431ee8a8b5e7d76dc78b0cbc47edcb to your computer and use it in GitHub Desktop.
Icons for VIFM

How to install icons

  1. Install vifm

  2. Install Nerd Fonts Mono

    mkdir -p ~/.local/share/fonts
    cd ~/.local/share/fonts && curl -fLo "IBM 3270 Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/3270/Regular/complete/IBM%203270%20Nerd%20Font%20Complete.otf?raw=true
    cd ~/.local/share/fonts && curl -fLo "IBM 3270 Nerd Font Complete Mono.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/3270/Regular/complete/IBM%203270%20Nerd%20Font%20Complete%20Mono.otf?raw=true
  3. Set fonts in your terminal (for gnome-terminal: Preferences > profile > Custom font)

  4. Append the vifm-icons file to your vifmrc (~/.config/vifm/vifmrc) or download and source it

  5. Restart vifm

  6. Enjoy

" ------------------------------------------------------------------------------
" Icons
" Filetypes
set classify=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::'
" Dirs
set classify+='  ::.git/::/,
\  ::.github/::/,
\ ⚙ ::.config/::/,
\ ☕ ::java/::/,
\  ::Desktop/::/,
\  ::Documents/::/,
\  ::Kod/::/,
\  ::Downloads/::/,
\  ::Music/::/,
\  ::Pictures/::/,
\  ::Public/::/,
\  ::Templates/::/,
\  ::Videos/::/,
\  ::node_modules/::/'
" Files
set classify+='  ::.Xauthority,,.Xdefaults,,.Xresources,,.dmrc,,.DS_Store,,.fasd,,.inputrc,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitrc,,.xinputrc,,config,,bspwmrc,,sxhkdrc,,Makefile,,Makefile.in,,Makefile.ac,,mimeapps.list,,.zshenv,,.zprofile,,.zshrc,,.zlogin,,.zlogout,,yabairc,,skhdrc,,ini,,user-dirs.dirs::,
\  ::.vim,,.vimrc,,.viminfo,,init.vim,,.tmux.conf,,vifmrc::,
\  ::.*.sw?::,
\  ::.gitignore,,.gitattributes,,.gitconfig::,
\  ::*.java,,*.jar,,*.jsh,,*.jsp,,*.jbang::,
\  ::*.fish,,*.sh,,*.bash,,.bash_aliases,,.bashprofile,,.bash_profile,,.bash_logout,,.bash_history,,.bashrc,,::,
"\ ﯑ ::pom.xml::, piórko nie działa, poszukaj czego innego
\  ::*.py,,*.pyc,,*.pyd,,*.pyo::,
\  ::Dockerfile,,docker-compose.yml::,
\  ::.fehbg::,
\  ::favicon.ico::,
\  ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::,
\  ::gulpfile.coffee,,gulpfile.js,,gulpfile.ls::,
\  ::ledger::,
\  ::package.json,,package-lock.json,,webpack.config.js::,
\  ::*.json,,*.bson::,
\  ::.ncmpcpp,,playlists::,
\  ::known_hosts,,authorized_keys,,*.pub,,*.rsa,,*.ecdsa,,license,,LICENSE.md,,LICENSE,,LICENSE.txt::,
\  ::procfile::,
\  ::README.*::,
\  ::*.markdown,,*.md::,
\  ::*.adoc,,*.asciidoctor::,
\  ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::,
\  ::*.pdf::,
\  ::*.log::,
\  ::*.css,,*.less,,*.scss,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.cfg,,*.properties::,
\  ::*.rss::,
\  ::*.mustasche::,
\  ::*.xul::,
\  ::*.pl,,*.pm,,*.t::,
\  ::*.php::,
\  ::*.rb::,
\  ::*.jsx::,
\  ::*.erl,,*.hrl::,
\  ::*.coffee::,
\  ::*.twig::,
\  ::*.c++,,*.cpp,,*.cxx,,*.h::,
\  ::*.cc,,*.c::,
\  ::*.hs,,*.lhs::,
\  ::*.lua::,
\  ::*.jl::,
\  ::*.go::,
\  ::*.ts::,
\  ::*.db,,*.dump,,*.sql,,*.sqldump,,*.sqlite::,
\  ::*.sln,,*.suo::,
\  ::*.exe::,
\  ::*.diff,,*.sum,,*.md5,,*.sha512::,
\  ::*.scala::,
\  ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::,
\  ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::,
\  ::*.ai::,
\  ::*.psb,,*.psd::,
\  ::*.cbr,,*.cbz::,
\  ::*.doc,,*.docx,,*.odt::,
\  ::*.xls,,*.xlsmx,,*.ods::,
\  ::*.pptx,,*.ppt,,*.odp::,
\  ::*.avi,,*.flv,,*.mkv,,*.mov,,*.mp4,,*.mpeg,,*.mpg,,*.webm,,*.av1::,
\  ::*.epub,,*.pdf,,*.fb2,,*.djvu::,
\  ::*.7z,,*.apk,,*.bz2,,*.cab,,*.cpio,,*.deb,,*.gem,,*.gz,,*.gzip,,*.lh,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.tar,,*.tgz,,*.xz,,*.zip,,*.zst::'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment