Logo
Explore Help
Sign In
shell-user/oh-my-zsh
1
0
Fork 0
You've already forked oh-my-zsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-05-11 05:55:17 +00:00
Code Issues Projects Releases Wiki Activity
Files
0b506fea0c9aeb450db6fdaba572041fd900c05b
oh-my-zsh/plugins/grc/grc.plugin.zsh

18 lines
279 B
Bash
Raw Normal View History

feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
#!/usr/bin/env zsh
feat(plugins): add grc plugin for Generic Colouriser (#9315) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09 11:59:12 -05:00
feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
# common grc.zsh paths
files=(
/etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew
feat(plugins): add grc plugin for Generic Colouriser (#9315) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09 11:59:12 -05:00
)
feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
# verify the file is readable and source it
for file in $files; do
if [[ -r "$file" ]]; then
source "$file"
break
feat(plugins): add grc plugin for Generic Colouriser (#9315) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09 11:59:12 -05:00
fi
done
feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
unset file files
Reference in New Issue Copy Permalink
Powered by Gitea Page: 1488ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API