From 400d1b8eab0f458cf97ca6eea3af991b3f47fcb9 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Wed, 7 Sep 2016 19:51:39 +0200 Subject: [PATCH] Check if motorcycle exists before doing it --- zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 5aaeb07..d3b5ee5 100644 --- a/zshrc +++ b/zshrc @@ -15,4 +15,7 @@ source $DOTFILES/zsh/aliases.zsh source $DOTFILES/zsh/functions.zsh clear && screenfetch -echo -ne "\033[F\033[F\033[F\033[F\033[F\t\t\t\t\t\b\033[1;36mA:\033[0m `/home/thomas/.more-scripts/motorcyle.py`\n\n\n\n\n" + +if [ -e "/home/thomas/.more-scripts/motorcyle.py" ]; then + echo -ne "\033[F\033[F\033[F\033[F\033[F\t\t\t\t\t\b\033[1;36mA:\033[0m `/home/thomas/.more-scripts/motorcyle.py`\n\n\n\n\n" +fi