Migrate from ~/.config/local to ~/.local/settings.
This commit is contained in:
parent
4dc2b58f6a
commit
ee45430c00
5 changed files with 29 additions and 21 deletions
|
@ -33,4 +33,4 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||
fi
|
||||
|
||||
# local settings
|
||||
[ -e $XDG_CONFIG_HOME/local/zsh ] && source $XDG_CONFIG_HOME/local/zsh
|
||||
source ~/.local/settings/zsh
|
||||
|
|
|
@ -14,7 +14,7 @@ else
|
|||
alias ll='ls -l'
|
||||
fi
|
||||
if [ $(command -v fd) ]; then
|
||||
alias fd='fd -H -L --ignore-file ~/.config/local/fd'
|
||||
alias fd='fd -H -L --ignore-file ~/.local/settings/fd'
|
||||
fi
|
||||
if [ $(command -v nvim) ]; then
|
||||
export EDITOR='nvim'
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
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'
|
||||
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/settings/fd'
|
||||
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/settings/fd'
|
||||
export FZF_DEFAULT_OPTS="--multi -e --ansi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Monokai\ Extended\ Bright {}'"
|
||||
export FZF_CTRL_R_OPTS="-e --ansi --layout=reverse --preview=''"
|
||||
_fzf_compgen_path() {
|
||||
fd -H -L --ignore-file $XDG_CONFIG_HOME/local/fd . "$1"
|
||||
fd -H -L --ignore-file ~/local/settings/fd . "$1"
|
||||
}
|
||||
_fzf_compgen_dir() {
|
||||
fd -H -L --ignore-file $XDG_CONFIG_HOME/local/fd --type d . "$1"
|
||||
fd -H -L --ignore-file ~/local/settings/fd --type d . "$1"
|
||||
}
|
||||
|
||||
# heavily inspired (and sometimes stolen from): https://github.com/wfxr/forgit.git
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue