mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
No commits in common. "7eb8ac07728f2f026a09790466881e2bb147aaab" and "091449f6044a2c5ae2087dc69fbf4780871ace2a" have entirely different histories.
7eb8ac0772
...
091449f604
4 changed files with 12 additions and 9 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
node_modules/
|
node_modules/
|
||||||
.venv
|
.venv
|
||||||
*.md.html
|
|
|
@ -58,6 +58,3 @@ setopt hist_verify
|
||||||
setopt inc_append_history
|
setopt inc_append_history
|
||||||
# synchronize history between active sessions
|
# synchronize history between active sessions
|
||||||
setopt share_history
|
setopt share_history
|
||||||
|
|
||||||
# Among other things, used for compatibility with OMZ plugins.
|
|
||||||
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/dotfiles"
|
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
mkdir -pv "$ZSH_CACHE_DIR"
|
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/dotfiles"
|
||||||
|
if [[ ! -d "$ZSH_CACHE_DIR" ]]; then
|
||||||
|
mkdir -pv "$ZSH_CACHE_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
source "$ZSH_DOTFILES/zplg.zsh"
|
||||||
|
|
||||||
_plugin() {
|
_plugin() {
|
||||||
_perf_timer_start "plugin $1"
|
_perf_timer_start "plugin $1"
|
||||||
|
|
|
@ -46,20 +46,22 @@ _perf_timer_start "total"
|
||||||
fi
|
fi
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
for script in functions options path env zplg plugins aliases completion zle prompt colorscheme; do
|
for script in functions options path env plugins aliases completion zle prompt colorscheme; do
|
||||||
_perf_timer_start "$script.zsh"
|
_perf_timer_start "$script.zsh"
|
||||||
source "$ZSH_DOTFILES/$script.zsh"
|
source "$ZSH_DOTFILES/$script.zsh"
|
||||||
_perf_timer_stop "$script.zsh"
|
_perf_timer_stop "$script.zsh"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -d "$ZSH_DOTFILES/custom" ]]; then
|
if [[ -d "$ZSH_DOTFILES/custom" ]]; then
|
||||||
_perf_timer_start "custom scripts"
|
|
||||||
for script in $ZSH_DOTFILES/custom/*.zsh; do
|
for script in $ZSH_DOTFILES/custom/*.zsh; do
|
||||||
|
_perf_timer_start "custom/${script##*/}"
|
||||||
source "$script"
|
source "$script"
|
||||||
|
_perf_timer_stop "custom/${script##*/}"
|
||||||
done
|
done
|
||||||
_perf_timer_stop "custom scripts"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
command_exists rbenv && eval "$(rbenv init -)"
|
||||||
|
|
||||||
_perf_timer_stop "total"
|
_perf_timer_stop "total"
|
||||||
|
|
||||||
welcome
|
welcome
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue