From c4c9abc2b653e37a9cbe36c34793cff2ad7d54e3 Mon Sep 17 00:00:00 2001 From: vrtcl1dvoshun Date: Wed, 22 May 2013 16:53:12 -0500 Subject: [PATCH] Added v and fixed j - `v` Mimics rupa/v: opens the file with vim using viminfo backend. - fixed `j` alias to only look for directories [ticket: X] --- modules/fasd/README.md | 3 ++- modules/fasd/init.zsh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/fasd/README.md b/modules/fasd/README.md index 5cfc2cc7..0bf04eed 100644 --- a/modules/fasd/README.md +++ b/modules/fasd/README.md @@ -3,7 +3,7 @@ Fasd [Fasd][1] is a command-line productivity booster, inspired by tools like [autojump][2], [z][3] and [v][4], it offers quick access to files and -directories by keeping track of files and directories that were previously +directories by keeping track of files and directories that were previously accessed. For completion to work, this module must be loaded **after** the *completion* @@ -16,6 +16,7 @@ Aliases ------- - `j` changes the current working directory interactively. + - `v` Mimics rupa/v: opens the file with vim using viminfo backend. Completion ---------- diff --git a/modules/fasd/init.zsh b/modules/fasd/init.zsh index 7088e9c6..ad922ae9 100644 --- a/modules/fasd/init.zsh +++ b/modules/fasd/init.zsh @@ -49,6 +49,6 @@ function fasd_cd { # Aliases # -# Changes the current working directory interactively. -alias j='fasd_cd -i' +alias j='fasd_cd -id' # Changes the current working directory interactively. +alias v='fasd -f -t -e vim -b viminfo' # Mimics rupa/v: opens the file with vim using viminfo backend.