Skip to content

Instantly share code, notes, and snippets.

@andyrufasto
andyrufasto / devicons.py
Created July 20, 2020 17:52
~/.config/ranger/plugins/ranger_devicons/devicons.py
#!/usr/bin/python
# coding=UTF-8
# These glyphs, and the mapping of file extensions to glyphs
# has been copied from the vimscript code that is present in
# https://github.com/ryanoasis/vim-devicons
import re;
import os;
# all those glyphs will show as weird squares if you don't have the correct patched font
# My advice is to use NerdFonts which can be found here: