From ea40bf8aeffb26db36cf0c767fad874cacb8c900 Mon Sep 17 00:00:00 2001 From: Tomas Mirchev Date: Tue, 25 Feb 2025 14:50:09 +0100 Subject: [PATCH] add ls if --- config/shared/zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/shared/zsh b/config/shared/zsh index fb1b135..fd69eba 100644 --- a/config/shared/zsh +++ b/config/shared/zsh @@ -46,7 +46,12 @@ bindkey '^[[B' down-line-or-beginning-search # normal mode bindkey '^[OB' down-line-or-beginning-search # application mode # Aliases for ls -alias ls='ls --color=auto --group-directories-first' +OS_TYPE=$(uname) +if [[ "$OS_TYPE" == "Linux" ]]; then + alias ls='ls --color=auto --group-directories-first' +elif [[ "$OS_TYPE" == "Darwin" ]]; then + alias ls='ls --color=auto' +fi alias ll='ls -lF' alias lla='ll -a' alias ld='ls -ld */' # List only directories