Skip to content

Commit

Permalink
fix: clean up .zshrc logic
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Apr 15, 2023
1 parent 22c35b7 commit 1c80e74
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions zsh/.config/zsh/.zshrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/usr/bin/env zsh
# [[ -n $PROFILE_ZSH ]] && {
# PS4=$'\\\011%D{%s%6.}\011%x\011%I\011%N\011%e\011'
# exec 3>&2 2>"${HOME}/zshstart.$$.log"
# setopt xtrace prompt_subst
# }
# `local` sets the variable's scope to this function and its descendendants.
local ZDOTDIR=$HOME/.config/zsh
# load all of the files in rc.d that start with <number>- and end in `.zsh`.
for f in $ZDOTDIR/rc.d/<->-*zsh(n); source $f

[ -z "$ZPROF" ] || zmodload zsh/zprof

0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
# print -- "${0:h}"
local ZDOTDIR="${0:h}"
for f in ${ZDOTDIR}/rc.d/<->-*zsh(N); do
source "$f"
# print -- "$f"
done

[ -z "$ZPROF" ] || zprof

# vim: set expandtab filetype=zsh shiftwidth=2 softtabstop=2 tabstop=2:

0 comments on commit 1c80e74

Please sign in to comment.