From 92500571f192cb716ead15aa19ef1d554a57ad0a Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Thu, 6 Nov 2014 21:26:45 +0100 Subject: Bash config: vim-which alias for editing PATH scripts right away MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 4b9e644..34c3d6d 100644 --- a/.bashrc +++ b/.bashrc @@ -134,6 +134,8 @@ cdup() { cdmk() { cd "$1" 2>/dev/null || { mkdir "$1"; cd "$1";}; } +vim-which() { vim "$(which "$@")"; } + # Jim Meyring's take on "display the programs with W and X memory" # http://lists.fedoraproject.org/pipermail/devel/2013-April/181747.html sec-wx-mem() { -- cgit