updated stuff
This commit is contained in:
parent
c37679a883
commit
c4ff5a9900
24 changed files with 138 additions and 30 deletions
38
zsh/.zshrc
38
zsh/.zshrc
|
@ -1,36 +1,24 @@
|
|||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
if [[ -r "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
source "$ZDOTDIR/libraries/export.zsh"
|
||||
source "$ZDOTDIR/libraries/dircolor.zsh"
|
||||
source $ZDOTDIR/exports.zsh
|
||||
source $ZDOTDIR/dircolor.zsh
|
||||
|
||||
source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
source "/usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme"
|
||||
source $share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source $share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
autoload -Uz compinit
|
||||
if [[ -n $HOME/.cache/zsh/compdump(#qN.mh+24) ]]; then compinit -d $HOME/.cache/zsh/compdump; else compinit -d $HOME/.cache/zsh/compdump -C; fi
|
||||
|
||||
for file in $ZDOTDIR/libraries/source/*.zsh; do source "$file"; done
|
||||
for file in $ZDOTDIR/libraries/plugins/*.zsh; do source "$file"; done
|
||||
for file in $ZDOTDIR/libs/*.zsh; do source "$file"; done
|
||||
for file in $ZDOTDIR/plgs/*.zsh; do source "$file"; done
|
||||
|
||||
source "/usr/share/fzf/completion.zsh"
|
||||
source "/usr/share/fzf/key-bindings.zsh"
|
||||
source "/usr/share/doc/pkgfile/command-not-found.zsh"
|
||||
source "$ZDOTDIR/libraries/tmux/tmux.zsh"
|
||||
|
||||
# Use lf to switch directories and bind it to ctrl-o
|
||||
lfcd () {
|
||||
tmp="$(mktemp)"
|
||||
lf -last-dir-path="$tmp" "$@"
|
||||
if test -f "$tmp"; then
|
||||
dir="$(cat "$tmp")"
|
||||
rm -f "$tmp"
|
||||
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
||||
fi
|
||||
}
|
||||
bindkey -s '^o' 'lfcd\n'
|
||||
source $fzf/completion.zsh
|
||||
source $fzf/key-bindings.zsh
|
||||
source $share/doc/pkgfile/command-not-found.zsh
|
||||
source $ZDOTDIR/tmux/tmux.zsh
|
||||
|
||||
[[ ! -f $ZDOTDIR/.p10k.zsh ]] || source $ZDOTDIR/.p10k.zsh
|
||||
|
||||
source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
source $share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue