Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken sourcing from ~/.zshrc.d #101

Closed
Lenart12 opened this issue Jan 1, 2021 · 2 comments
Closed

Broken sourcing from ~/.zshrc.d #101

Lenart12 opened this issue Jan 1, 2021 · 2 comments

Comments

@Lenart12
Copy link
Contributor

Lenart12 commented Jan 1, 2021

.zshrc does not source dotfiles correctly from ~/.zshrc as it doesnt find actual dotfiles.
Reccomended fix (made in #102):

mkdir -p ~/.zshrc.d
# ..... Changes
if [ -n "$(/bin/ls -A ~/.zshrc.d)" ]; then
  for dotfile in $(find ~/.zshrc.d -type f)
# .....
  do
    if [ -r "${dotfile}" ]; then
      source "${dotfile}"
    fi
  done
fi

Use -A swich with ls to list dotfiles and find to enumerate all files (including dotfiles)

@unixorn
Copy link
Owner

unixorn commented Jan 8, 2021

Closed by #102

@unixorn unixorn closed this as completed Jan 8, 2021
@unixorn
Copy link
Owner

unixorn commented Jan 8, 2021

Thanks for the catch and thanks for submitting a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants