Ls is displaying output for ls -la

Is there a way to configure "ls" as it is by default displaying for "ls -la" I just want to give output for simple ls.

2 Likes

you can use dir instead of ls until this is solved. But dir gives me the feeling of windows and I hate windows, so I would also like to see the solution for this.

make in
.zshrc

alias ls='ls -la'

but IIRC it is inside in Garuda DE's :wink:

1 Like

Its set in fish (~/.config/fish/config.fish)
In this well commented file you just need to remove the alias for ls :thinking:

2 Likes

OMG, need coffee first. :smiley:

3 Likes
# Automatically ls when changing directory
cd() {
    builtin cd "[email protected]" && ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto
}
alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto'
  alias li='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'	
  alias grep='grep --colour=auto'
	alias egrep='egrep --colour=auto'
	alias fgrep='fgrep --colour=auto'
    alias ll='ls -l |more'
    alias la='ls -A |more'

with .zshrc

so for 'ls -la' type 'la'
For auto list, edit the top command - if I enter a directory (e.g. type 'Documents') then it goes quietly, but if I do 'cd Documents' then I get an instant listing.

My 'cd' is set to do 'ls' with directories first, but you could change that.

1 Like