From 247e4c652ea5fba659de6ecec5dbd49ae19bbd1f Mon Sep 17 00:00:00 2001 From: Joty Date: Mon, 23 Apr 2018 02:14:26 +0930 Subject: [PATCH] Added fzf --- .zshrc | 3 +++ README.md | 2 +- quickz.sh | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index e0b1046..29fcb82 100644 --- a/.zshrc +++ b/.zshrc @@ -109,5 +109,8 @@ source $ZSH/oh-my-zsh.sh # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +export FZF_DEFAULT_OPS="--extended" + alias wip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address alias l="ls -lah" diff --git a/README.md b/README.md index 04433c1..a245853 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # quickz-sh -Quickly install and setup oh-my-zsh with powerlevel9k theme, Powerline fonts, zsh-completions, zsh-autosuggestions, zsh-syntax-highlighting, history-substring-search etc. +Quickly install and setup oh-my-zsh with powerlevel9k theme, Powerline fonts, zsh-completions, zsh-autosuggestions, zsh-syntax-highlighting, history-substring-search, fzf etc. ## Installation ``` bash diff --git a/quickz.sh b/quickz.sh index 4c53edc..e64c90e 100755 --- a/quickz.sh +++ b/quickz.sh @@ -61,6 +61,12 @@ else cd ~/.oh-my-zsh/custom/themes/powerlevel9k && git pull fi +if git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf; then : +else + cd ~/.fzf && git pull +fi +~/.fzf/install --all --key-bindings --completion --no-update-rc --64 + # source ~/.zshrc echo -e "\nSudo access is needed to change default shell\n"