scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Use ZDOTDIR env variable for path to .zshrc #301

Closed m-rey closed 4 years ago

m-rey commented 4 years ago

Fixes #300. .zshrc can be found at ~/.zshrc when ZDOTDIR is not set. If ZDOTDIR is set, .zshrc is in ${ZDOTDIR}/.zshrc. Using parameter expansion, the hardcoded path can be replaced with ${ZDOTDIR:-$HOME}/.zshrc. That way, it'll use the value in ZDOTDIR when set and the value in HOME when not. This thus mirrors the usage of ZDOTDIR in zsh and makes the code more flexible.

ghthor commented 4 years ago

Thanks!