From 4ff802bf25e4240c579c81a37004b03d8d14e63e Mon Sep 17 00:00:00 2001 From: Chauncey Garrett Date: Mon, 14 Apr 2014 00:02:48 -0500 Subject: [PATCH] Move aliases to aliases.zsh Others are based off of the original repo [ticket: X] --- modules/fasd/aliases.zsh | 8 ++++++++ modules/fasd/init.zsh | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 modules/fasd/aliases.zsh diff --git a/modules/fasd/aliases.zsh b/modules/fasd/aliases.zsh new file mode 100644 index 00000000..7d6861c8 --- /dev/null +++ b/modules/fasd/aliases.zsh @@ -0,0 +1,8 @@ +# +# Aliases +# + +alias j='fasd_cd -id' # Changes the current working directory interactively. +alias v='fasd -f -t -e $EDITOR' # use Vim's builtin list of accessed files (similar rupa/v) +# alias v='fasd -f -e vim' # +# alias v='fasd -f -t -e vim -b viminfo' # use Vim's builtin list of accessed files (similar rupa/v) diff --git a/modules/fasd/init.zsh b/modules/fasd/init.zsh index ad922ae9..c04c00f5 100644 --- a/modules/fasd/init.zsh +++ b/modules/fasd/init.zsh @@ -45,10 +45,6 @@ function fasd_cd { fi } -# -# Aliases -# +source ${0:h}/aliases.zsh -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.