diff options
author | Peter Palfrader <peter@palfrader.org> | 2020-02-21 11:01:20 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2020-02-21 11:01:20 +0100 |
commit | 04d4df7ba1efea3a2a083528061bbc02801e47da (patch) | |
tree | 649b87469578c11c0dbdbcdeae952f029b96a01e | |
parent | 9059e67cfade53526528139ff4d1d8762494d299 (diff) |
Only add ccache to PATH if ~/.ccache is not a dangling symlink
-rw-r--r-- | zshrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -128,7 +128,11 @@ typeset -U fpath path=( "$HOME/bin" "$HOME/local/bin" - /usr/lib/ccache +) +if [ -e "$HOME/.ccache" ] || ! [ -L "$HOME/.ccache" ]; then + path+=( /usr/lib/ccache ) +fi +path+=( /usr/local/bin /usr/bin /usr/local/CAME/bin |