fzf-tab plugin
This commit is contained in:
parent
60f8811a74
commit
07a323ed48
@ -28,6 +28,7 @@ echo "export XDG_CONFIG_HOME=~/.config" >> ~/.zshenv
|
||||
echo "export XDG_DATA_HOME=~/.cache" >> ~/.zshenv
|
||||
echo "export ZDOTDIR=~/.config/zsh" >> ~/.zshenv
|
||||
mkdir -p ~/.cache/zsh ~/.config/zsh/plugins ~/.config/zsh/themes
|
||||
git clone https://github.com/Aloxaf/fzf-tab ~/.config/zsh/plugins/fzf-tab
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugins/zsh-syntax-highlighting
|
||||
git clone https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/themes/powerlevel10k
|
||||
|
11
zsh/zshrc
11
zsh/zshrc
@ -11,6 +11,15 @@ HISTFILE=$XDG_DATA_HOME/zsh/history
|
||||
setopt inc_append_history
|
||||
setopt share_history
|
||||
|
||||
source $XDG_CONFIG_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source $XDG_CONFIG_HOME/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
source $XDG_CONFIG_HOME//zsh/plugins/fzf-tab/fzf-tab.plugin.zsh
|
||||
zstyle ":completion:*:git-checkout:*" sort false
|
||||
zstyle ':completion:*:descriptions' format '[%d]'
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'
|
||||
|
||||
[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $XDG_CONFIG_HOME/fzf/fzf.zsh
|
||||
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file $XDG_CONFIG_HOME/local/fd'
|
||||
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file $XDG_CONFIG_HOME/local/fd'
|
||||
@ -23,8 +32,6 @@ _fzf_compgen_dir() {
|
||||
fd -H -L --ignore-file $XDG_CONFIG_HOME/local/fd --type d . "$1"
|
||||
}
|
||||
|
||||
source $XDG_CONFIG_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source $XDG_CONFIG_HOME/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source $XDG_CONFIG_HOME/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
|
||||
source ~/.dotfiles/zsh/p10k.zsh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user