From c99acc26e385a3d41f149b6b31cdd7dae3727ee8 Mon Sep 17 00:00:00 2001 From: David Chen Date: Sat, 6 Jun 2020 13:08:06 -0400 Subject: [PATCH] lazynpm mappings --- bin/ranger | 3 --- ranger/rc.conf | 1 + zsh/mappings.zsh | 6 ++++++ 3 files changed, 7 insertions(+), 3 deletions(-) delete mode 100755 bin/ranger diff --git a/bin/ranger b/bin/ranger deleted file mode 100755 index 167bc01..0000000 --- a/bin/ranger +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -python3 "$LOCALPROG"/ranger/ranger.py diff --git a/ranger/rc.conf b/ranger/rc.conf index ba60df1..756f2de 100644 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -351,6 +351,7 @@ map toggleVCS # Open lazygit map shell lazygit +map shell lazynpm # locations map gh cd ~ diff --git a/zsh/mappings.zsh b/zsh/mappings.zsh index d7962ad..c0ae373 100644 --- a/zsh/mappings.zsh +++ b/zsh/mappings.zsh @@ -10,3 +10,9 @@ function openlazygit { zle -N openlazygit; bindkey "^G" openlazygit +function openlazynpm { + zle_eval lazynpm +} + +zle -N openlazynpm; bindkey "^N" openlazynpm +