From: Oleg Broytman Date: Fri, 4 Sep 2015 18:30:21 +0000 (+0300) Subject: .shellrc: simplify test for symlink X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=86c6f81d3b7c0b192549c1b285262597c100b22e;p=dotfiles.git .shellrc: simplify test for symlink --- 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`" &&