Skip to content

Commit a65274b

Browse files
authored
Merge pull request #307 from unixorn/add-work-fragment-dir
Load fragments from ~/.zshrc.work.d when present
2 parents cdd295f + c8ef292 commit a65274b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ After the quickstart sets up its aliases, functions, plugins and ZSH options, it
389389

390390
To make it easier to have macOS, FreeBSD or Linux-specific settings tweaks, the quickstart also supports OS-specific pre & post `.zshrc.d` directories. If you want a file to only be sourced on a single OS, the quickstart also checks for `.zshrc.pre-plugins.$(uname).d` and `~/.zshrc.$(uname).d` during loading.
391391

392+
For your convenience, the quickstart will also look for a `.zshrc.work.d` directory, and if it's present, load fragment files from there. This lets you have a separate directory in your dotfiles repository for work-specific customizations.
393+
392394
### Self-update Settings
393395

394396
The quickstart kit will automatically check for updates every seven days. If you want to change the interval, set `QUICKSTART_KIT_REFRESH_IN_DAYS` in a file in `~/.zshrc.d`. If you're going to disable self-updating entirely, add `unset QUICKSTART_KIT_REFRESH_IN_DAYS` in a file in `~/.zshrc.d`.

zsh/.zshrc

+5
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,11 @@ if [[ -d "$HOME/.zshrc.$(uname).d" ]]; then
667667
load-shell-fragments "$HOME/.zshrc.$(uname).d"
668668
fi
669669

670+
# Load work-specific fragments when present
671+
if [[ -d "$HOME/.zshrc.work.d" ]]; then
672+
load-shell-fragments "$HOME/.zshrc.work.d"
673+
fi
674+
670675
# If GOPATH is defined, add it to $PATH
671676
if [[ -n "$GOPATH" ]]; then
672677
if [[ -d "$GOPATH" ]]; then

0 commit comments

Comments
 (0)