Skip to content

Commit

Permalink
feat(sheldon): add macos_source
Browse files Browse the repository at this point in the history
  • Loading branch information
himkt committed Nov 16, 2024
1 parent dd53135 commit f4beb42
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sheldon/config.d/plugins.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
shell = "zsh"

[templates]
macos_source = '''
if [[ "$OSTYPE" = darwin* ]]; then
{{ hooks?.pre | nl }}{% for file in files %}source "{{ file }}"
{% endfor %}{{ hooks?.post | nl }}
fi
'''

[plugins.zsh-autosuggestions]
github = 'zsh-users/zsh-autosuggestions'
apply = ['source']
Expand All @@ -10,4 +18,4 @@ apply = ['source']

[plugins.zsh-platform-switcher]
github = 'himkt/zsh-platform-switcher'
apply = ['source']
apply = ['macos_source']

0 comments on commit f4beb42

Please sign in to comment.