OSDN Git Service

[fix] : Fixed an issue that prevented login with CLi master origin/HEAD origin/master osdn/master v1.2
authorhayao <shun819.mail@gmail.com>
Mon, 13 Apr 2020 03:09:49 +0000 (12:09 +0900)
committerhayao <shun819.mail@gmail.com>
Mon, 13 Apr 2020 03:09:49 +0000 (12:09 +0900)
lsd-alias

index fb9e90f..be25615 100755 (executable)
--- a/lsd-alias
+++ b/lsd-alias
@@ -10,17 +10,14 @@ else
 fi
 
 
-if [[ ${TERM} = "linux" ]]; then
-    exit 0
-fi
-
-
-set +e
-unalias ls > /dev/null 2>&1
+if [[ ! ${TERM} = "linux" ]]; then
+    set +e
+    unalias ls > /dev/null 2>&1
 
 
-case ${lsd} in
-    true) alias ls='lsd';;
-    false) alias ls='ls';;
-    *) :;;
-esac
\ No newline at end of file
+    case ${lsd} in
+        true) alias ls='lsd';;
+        false) alias ls='ls';;
+        *) :;;
+    esac
+fi
\ No newline at end of file