From 09340b3ceb40edf77bcfd732d58fcc364d20865e Mon Sep 17 00:00:00 2001 From: Simonas Narbutas Date: Fri, 13 Jul 2018 16:22:12 +0200 Subject: [PATCH] change PATH per laptop --- {.zsh.d => .yadm/alt/.zsh.d}/00-path.zsh | 0 .yadm/alt/.zsh.d/00-path.zsh##Linux.epiphanius | 6 ++++++ 2 files changed, 6 insertions(+) rename {.zsh.d => .yadm/alt/.zsh.d}/00-path.zsh (100%) create mode 100644 .yadm/alt/.zsh.d/00-path.zsh##Linux.epiphanius diff --git a/.zsh.d/00-path.zsh b/.yadm/alt/.zsh.d/00-path.zsh similarity index 100% rename from .zsh.d/00-path.zsh rename to .yadm/alt/.zsh.d/00-path.zsh diff --git a/.yadm/alt/.zsh.d/00-path.zsh##Linux.epiphanius b/.yadm/alt/.zsh.d/00-path.zsh##Linux.epiphanius new file mode 100644 index 0000000..ecd6492 --- /dev/null +++ b/.yadm/alt/.zsh.d/00-path.zsh##Linux.epiphanius @@ -0,0 +1,6 @@ +for dir in /usr/bin /usr/sbin /sbin /bin /home/snarbutas/.bin; do + if test -d "$dir" && ! grep -q -e "^${dir}:" -e ":${dir}:" -e ":${dir}" <<< $PATH; then + PATH="${dir}:${PATH}" + fi +done +export PATH