From 8e0aa077498f1c8880133ba59dc51bdd18b02cb5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 31 Dec 2011 00:11:35 +0100 Subject: only add ~/misc/scripts to path if it exists Signed-off-by: Florian Pritz --- .zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 37818b1..9040df4 100644 --- a/.zshrc +++ b/.zshrc @@ -9,10 +9,14 @@ stty -echo ZDOTDIR="$HOME/.zsh" export PATH=$HOME/bin:$PATH +if [[ -d $HOME/misc/scripts ]]; then + export PATH=${HOME}/misc/scripts:${PATH} +fi if [ $UID -eq 0 ]; then export PATH=/root/bin:$PATH fi + # Colors {{{ #use these in functions/shell scripts export NC='\e[0m' @@ -179,7 +183,6 @@ bindkey ",," globalias # Variables {{{ #export CDPATH=.:$HOME export OOO_FORCE_DESKTOP=gnome -export PATH=${HOME}/misc/scripts:${PATH} export EDITOR=vim export VISUAL=$EDITOR export PAGER=less -- cgit v1.2.3-24-g4f1b