Logo
Explore Help
Sign In
gaspersic/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
0f6836701d82a2ee024153c7f781bb72c2e9a8ac
ohmyzsh/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 Version: 1.24.4 Page: 36ms Template: 2ms
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