summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-11-06 21:26:45 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-11-06 21:26:45 +0100
commit92500571f192cb716ead15aa19ef1d554a57ad0a (patch)
treef8da887014c29bae4c50e8a325e5f43a56d950cf
parent7d8f5f273570ce8d42db1f8ca39a5c1500906371 (diff)
downloaddotfiles-92500571f192cb716ead15aa19ef1d554a57ad0a.zip
dotfiles-92500571f192cb716ead15aa19ef1d554a57ad0a.tar.gz
dotfiles-92500571f192cb716ead15aa19ef1d554a57ad0a.tar.xz
Bash config: vim-which alias for editing PATH scripts right away
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.bashrc2
1 files changed, 2 insertions, 0 deletions
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() {