]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: simplify test for symlink
authorOleg Broytman <phd@phdru.name>
Fri, 4 Sep 2015 18:30:21 +0000 (21:30 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 4 Sep 2015 18:30:21 +0000 (21:30 +0300)
.shellrc

index eb741b1345c1124b90dc9bc7a96ece9ffe7c3357..e47cda2abd976cfa13f98fccf3705c1146a585c8 100644 (file)
--- 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`" &&