From f95e0d936049fdd1e003f4dc29fe049bc3161f90 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 9 Nov 2020 22:25:00 +0800 Subject: [PATCH] [feature] add `cg` go to git toplevel --- ranger/config/rc.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf index ca828ec..7e3a438 100644 --- a/ranger/config/rc.conf +++ b/ranger/config/rc.conf @@ -5,3 +5,4 @@ set colorscheme solarizedmod default_linemode devicons set draw_borders both set vcs_aware true +map cg eval import subprocess;fm.cd(subprocess.getoutput('git rev-parse --show-toplevel'))