diff --git a/Makefile b/Makefile index 72e478a..31cc25a 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,12 @@ RC_FILE=$(RANGER_DIR)/rc.conf install: install -d $(PLUGIN_DIR) - install -b devicons.py $(RANGER_DIR)/devicons.py + install -b devicons.py $(PLUGIN_DIR)/devicons.py install -b devicons_linemode.py $(PLUGIN_DIR)/devicons_linemode.py grep -q 'default_linemode devicons' $(RC_FILE) || echo '# a plugin that adds file glyphs / icon support to Ranger:' >> $(RC_FILE) grep -q 'default_linemode devicons' $(RC_FILE) || echo '# https://github.com/alexanderjeurissen/ranger_devicons' >> $(RC_FILE) grep -q 'default_linemode devicons' $(RC_FILE) || echo 'default_linemode devicons' >> $(RC_FILE) uninstall: - $(RM) $(RANGER_DIR)/devicons.py + $(RM) $(PLUGIN_DIR)/devicons.py $(RM) $(PLUGIN_DIR)/devicons_linemode.py diff --git a/devicons_linemode.py b/devicons_linemode.py index 1ebc559..d826330 100755 --- a/devicons_linemode.py +++ b/devicons_linemode.py @@ -1,6 +1,6 @@ import ranger.api from ranger.core.linemode import LinemodeBase -from devicons import * +from plugins.devicons import * @ranger.api.register_linemode class DevIconsLinemode(LinemodeBase): @@ -16,4 +16,4 @@ class DevIconsLinemodeFile(LinemodeBase): name = "filename" def filetitle(self, file, metadata): - return devicon(file) + ' ' + file.relative_path \ No newline at end of file + return devicon(file) + ' ' + file.relative_path