Better to let short circuit evaluation avoid the function call and file system access.
David Blume

David Blume commited on 2018-09-06 16:47:58
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -3,7 +3,7 @@
3 3
 if [ -f "${HOME}/.bashrc" ]; then
4 4
     source "${HOME}/.bashrc"
5 5
 fi
6
-if [[ $(uname -s) == Darwin* && -z $SSH_CLIENT && 
7
-	-n $ITERM_PROFILE && -f "${HOME}/tips.txt" ]]; then
6
+if [[ -n $ITERM_PROFILE && -z $SSH_CLIENT &&
7
+	$(uname -s) == Darwin* && -f "${HOME}/tips.txt" ]]; then
8 8
     cat ~/tips.txt
9 9
 fi
10 10