Skip to content

Loading…

Load symlink custom files #1126

Merged
merged 1 commit into from

10 participants

@natsumesou

(.) search only real files.
The deletion of it enables searching symlink *.zsh files

@natsumesou natsumesou Load symlink custom files
    `(.)` search only real files.
    The deletion of it enables searching symlink *.zsh files
61c39b5
@natsumesou

relational commit
51c55ad

@kreeger

Gotta add my +1, here, as the latest update of Oh My Zsh has borked the loading of my custom, symlinked-in .zsh scripts.

@forest

+1

@simeonwillbanks

+1 My symlinked dotfiles are no longer sourced!

$ l /Users/simeon/.oh-my-zsh/custom/lessonplanet.zsh
lrwxr-xr-x 1 simeon staff 69 Mar 16 10:33 /Users/simeon/.oh-my-zsh/custom/lessonplanet.zsh -> /Users/simeon/Repositories/dotfiles/oh-my-zsh/custom/lessonplanet.zsh

$ l /Users/simeon/.oh-my-zsh/custom/simeon.zsh
lrwxr-xr-x 1 simeon staff 63 Mar 16 10:33 /Users/simeon/.oh-my-zsh/custom/simeon.zsh -> /Users/simeon/Repositories/dotfiles/oh-my-zsh/custom/simeon.zsh

BEFORE 51c55ad
$ for config_file ($ZSH_CUSTOM/*.zsh) echo $config_file
/Users/simeon/.oh-my-zsh/custom/example.zsh
/Users/simeon/.oh-my-zsh/custom/lessonplanet.zsh
/Users/simeon/.oh-my-zsh/custom/simeon.zsh

AFTER 51c55ad :-1:
$ for config_file ($ZSH_CUSTOM/*.zsh(.N)) echo $config_file
/Users/simeon/.oh-my-zsh/custom/example.zsh

PULL REQUEST 61c39b5 :clap:
$ $ for config_file ($ZSH_CUSTOM/*.zsh(N)) echo $config_file
/Users/simeon/.oh-my-zsh/custom/example.zsh
/Users/simeon/.oh-my-zsh/custom/lessonplanet.zsh
/Users/simeon/.oh-my-zsh/custom/simeon.zsh

Here is a temporary fix for everyone: simeonwillbanks/dotfiles@96831b4

@AaronLasseigne

+1

I'm having the same issue with symlinked custom files and this fixed it.

@KristianOellegaard

This affects me as well.

Btw, epic @simeonwillbanks

@jgoulah

+1

@ayn

+1, thanks!

@robbyrussell

Great idea, merging this in. :-)

@robbyrussell robbyrussell merged commit 493238e into robbyrussell:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 23, 2012
  1. @natsumesou

    Load symlink custom files

    natsumesou committed
        `(.)` search only real files.
        The deletion of it enables searching symlink *.zsh files
Showing with 1 addition and 1 deletion.
  1. +1 −1 oh-my-zsh.sh
View
2 oh-my-zsh.sh
@@ -51,7 +51,7 @@ for plugin ($plugins); do
done
# Load all of your custom configurations from custom/
-for config_file ($ZSH_CUSTOM/*.zsh(.N)) source $config_file
+for config_file ($ZSH_CUSTOM/*.zsh(N)) source $config_file
# Load the theme
if [ "$ZSH_THEME" = "random" ]
Something went wrong with that request. Please try again.