From 86c6f81d3b7c0b192549c1b285262597c100b22e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 4 Sep 2015 21:30:21 +0300 Subject: [PATCH] .shellrc: simplify test for symlink --- .shellrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.shellrc b/.shellrc index eb741b1..e47cda2 100644 --- a/.shellrc +++ b/.shellrc @@ -8,8 +8,7 @@ PS1="$OPS1 " case "$HOME" in /home/*) - home_link="`readlink /home`" - if [ -n "$home_link" ]; then + if [ -L /home ]; then START_DIR="`pwd`" && cd "$HOME" && HOME="`pwd`" && -- 2.39.5