path to local configs

This commit is contained in:
Bartek Stalewski 2020-10-20 16:52:08 +02:00
parent e43bf031f8
commit 1adf0f0a4a
2 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ ln -sf ~/.dotfiles/conf/tmux.conf ~/.tmux.conf
## zsh
# cleaning
rm -rf ~/.zsh* ~/.zcompdump* ~/.config/zsh/
rm -rf ~/.zsh* ~/.zcomp* ~/.config/zsh/
mkdir -p ~/.config/zsh/caches ~/.config/zsh/plugins ~/.config/zsh/themes
# dependiences
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/zsh-autosuggestions

View File

@ -9,15 +9,15 @@ setopt inc_append_history
setopt share_history
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.config/local.fdignore'
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.config/local.fdignore'
export FZF_DEFAULT_OPTS="-e --multi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=gruvbox {}'"
export FZF_CTRL_R_OPTS="-e --layout=reverse --preview=''"
_fzf_compgen_path() {
fd -H -L --ignore-file ~/.config/fdignore.local . "$1"
fd -H -L --ignore-file ~/.config/local.fdignore . "$1"
}
_fzf_compgen_dir() {
fd -H -L --ignore-file ~/.config/fdignore.local --type d . "$1"
fd -H -L --ignore-file ~/.config/local.fdignore --type d . "$1"
}
source ~/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
@ -25,4 +25,4 @@ source ~/.config/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.config/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
source ~/.dotfiles/zsh/p10k.zsh
[ -e ~/.config/zsh/local.zsh ] && source ~/.config/zsh/local.zsh
[ -e ~/.config/local.zsh ] && source ~/.config/local.zsh