Comments (4)
Interesting. This is the relevant code block:
zsh_unplugged/zsh_unplugged.plugin.zsh
Lines 17 to 21 in 6c336f4
It tests for the existence of the init file prior to creating a symlink (if [[ ! -e $initfile ]]; then
). You might try adding an echo
statement to help debug and get the values of the variables in question: echo initfile=$initfile plugin_dir=$plugin_dir
and let me know what you find.
from zsh_unplugged.
Interesting. This is the relevant code block:
zsh_unplugged/zsh_unplugged.plugin.zsh
Lines 17 to 21 in 6c336f4
It tests for the existence of the init file prior to creating a symlink (
if [[ ! -e $initfile ]]; then
). You might try adding anecho
statement to help debug and get the values of the variables in question:echo initfile=$initfile plugin_dir=$plugin_dir
and let me know what you find.
The echo output was showing the symlinks in initfile.
After doing some more researching I figured out what the issue is in my case. On my main machine it creates the symbolic links with the full path. When I use chezmoi to pull my config to my other machines it pulls those symbolic links as well but they are broken. Somehow that was causing the function to try and recreate the symlinks. I corrected this by changing line 20 to use relative paths instead of absolute. Now it is working on all my machines with no errors.
ln -sr "${initfiles[1]}" "$initfile"
from zsh_unplugged.
Clever! The BSD ln
that ships with MacOS doesn't have the -r
option, so I can't incorporate that or I'd have to have everyone on MacOS brew install coreutils
, so for now we'll just mark this is resolved.
from zsh_unplugged.
@mattmc3 I completely understand and I have no problem with doing the change on my end only. Thanks for working with me today.
from zsh_unplugged.
Related Issues (9)
- Zinit is not dead! HOT 4
- Running offline HOT 1
- Latest update causing plugins to not be sourced properly HOT 9
- plugin-compile:4: no matches found: ~/.zsh/plugins/**/*.zsh-theme HOT 1
- slient git clone HOT 1
- Renaming unplugged.zsh to zunplugged.zsh breaks the former config HOT 2
- cannot find init file for powerlevel10k HOT 2
- Clarity on Oh-My-Zsh Plugins HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh_unplugged.