fzf and some plugins

This commit is contained in:
daniel
2023-03-19 11:28:18 +01:00
parent 236be9f66a
commit 493462c245
4 changed files with 23 additions and 3 deletions

View File

@@ -25,13 +25,24 @@ else
fi fi
fi fi
# fzf
if [ ! -d "$HOME/.fzf" ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.fzf
if [ ! -f "$HOME/.fzf/bin" ]; then
$HOME/.fzf/install --bin
fi
fi
# vundle
# vimplug
if [ ! -d "$HOME/.vim/autoload" ]; then if [ ! -d "$HOME/.vim/autoload" ]; then
echo "setup vim plug" echo "setup vim plug"
curl -fLo /.vim/autoload/plug.vim --create-dirs \ curl -fLo $HOME/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi fi
# linking dotfiles # linking dotfiles
$HOME/.dotfiles/dotfiles.sh link base $HOME/.dotfiles/dotfiles.sh link base
# reload shell
zsh

View File

@@ -1,3 +1,7 @@
# aliases # aliases
alias clip='xsel --clipboard' alias clip='xsel --clipboard'
alias ls='ls --color=auto -lh' alias ls='ls --color=auto -lh'
if type nvim > /dev/null; then
alias vim=nvim
fi

View File

@@ -12,3 +12,5 @@ zsh-users/zsh-autosuggestions
# theme # theme
romkatv/powerlevel10k romkatv/powerlevel10k
ohmyzsh/ohmyzsh path:plugins/ssh-agent
sunlei/zsh-ssh

View File

@@ -33,3 +33,6 @@ antidote load
# vim mode # vim mode
bindkey -v bindkey -v
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
bindkey '^f' fzf-file-widget