Added fzf
This commit is contained in:
3
.zshrc
3
.zshrc
@@ -109,5 +109,8 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# 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 wip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address
|
||||||
alias l="ls -lah"
|
alias l="ls -lah"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# quickz-sh
|
# 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
|
## Installation
|
||||||
``` bash
|
``` bash
|
||||||
|
|||||||
@@ -61,6 +61,12 @@ else
|
|||||||
cd ~/.oh-my-zsh/custom/themes/powerlevel9k && git pull
|
cd ~/.oh-my-zsh/custom/themes/powerlevel9k && git pull
|
||||||
fi
|
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
|
# source ~/.zshrc
|
||||||
echo -e "\nSudo access is needed to change default shell\n"
|
echo -e "\nSudo access is needed to change default shell\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user