all repos — nixfiles @ 5a2d7e4085b0461ff38abd9366ff56e00c0bfc42

System and user configuration, managed by nix and home-manager

Remove support for GNU ls on darwin
Alan Pearce alan@alanpearce.eu
Sat, 05 Oct 2019 19:10:37 +0200
commit

5a2d7e4085b0461ff38abd9366ff56e00c0bfc42

parent

5d004b393c7a497d0da0599f7f4ddb29b721c512

1 files changed, 2 insertions(+), 9 deletions(-)

jump to
M user/zsh/.config/zsh/.zshrcuser/zsh/.config/zsh/.zshrc
@@ -16,15 +16,8 @@ bsd_ls_isodate="-D '%F %k:%M'" 
 case $os in
   darwin)
-    if [[ -n $commands[gls] ]]
-    then
-      ls='\gls'
-      ls_options=$gnu_ls_options
-      ls_isodate=$gnu_ls_isodate
-    else
-      export CLICOLOR=1
-      ls_options=$bsd_ls_options
-    fi
+    export CLICOLOR=1
+    ls_options=$bsd_ls_options
     ;;
   freebsd)
     ls_options=$bsd_ls_options