From 8a2e0e74bb7f3d267a679076949d44e4e5e76800 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 18 Jul 2016 19:54:00 -0400 Subject: [PATCH] Added optional fasd command --- scripts/fasd.sh | 5 +++++ shells/zshrc | 3 +++ 2 files changed, 8 insertions(+) create mode 100755 scripts/fasd.sh diff --git a/scripts/fasd.sh b/scripts/fasd.sh new file mode 100755 index 0000000..a1e2069 --- /dev/null +++ b/scripts/fasd.sh @@ -0,0 +1,5 @@ +#!/bin/sh +git clone https://github.com/clvv/fasd /tmp/fasd +\cd /tmp/fasd +sudo make install +\cd - diff --git a/shells/zshrc b/shells/zshrc index 737b656..23aba00 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -438,6 +438,9 @@ k(){ (( $+TMUX )) && unset zle_bracketed_paste [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +if command -v fasd 2>&1 >/dev/null; then + eval "$(fasd --init auto)" +fi #Old config options that are no longer in use #alias pg="pcregrep -M"