From fa73cd64823ffde37e47b2088c53b1f16d987c99 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 19 Jan 2017 14:47:18 -0600 Subject: [PATCH] zprofile: Add .zprofile and .zprofile.local The `.zprofile` file is sourced by ZSH when the shell is run as a login shell. The `.zprofile.local` file, if it exists, is sourced by the main `.zprofile` script, and is the best place for unversioned per-machine changes. --- .gitignore | 1 + .zprofile | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .zprofile diff --git a/.gitignore b/.gitignore index dea2d4f..61dab1d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .zcompdump +.zprofile.local diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..9138ab8 --- /dev/null +++ b/.zprofile @@ -0,0 +1,6 @@ +typeset -U path +path[1,0]=~/.local/bin + +if [[ -r ${ZDOTDIR:-${HOME}}/.zprofile.local ]]; then + . ${ZDOTDIR:-${HOME}}/.zprofile.local +fi