Cd shows directory contents


#1

Why does ‘cd /usr’ show the directory content? I just want to go to /usr without seeing the content everytime. Where is this behaviour set?


#2

What do you mean? Is this happening in the terminal, can you give me a screenshot please.


#3

Nothing fancy to see. Whenever I do a cd (dir) I always get an overview (in wide view) and than the second line of the prompt is normal ->

It should not list the directory content. It should list the name of the dir on the first line and that’s it. I checked the aliases but nothing to see there. I’ve never experienced this kind of cd’ing :wink:


#4

I would have said there is an alias too. Weird behavior otherwise.
You are sure there is nothing in your bashrc ?
Or maybe a simlynk to a custom script that call the cd then ls ?


#5

Hmm. Ah yes I see on my test laptop. It is something to do with the zsh theme. I don’t use this theme so I am just working it out.


#6

Okay got it. Head to ~/.zsh/settings/ and open funcs.zsh.

Just remove the section called “better ls and cd”.

Restart your terminal.


#8

Thanks. That did the trick. In bash and zsh.


#9

Please feel free to mark this solved.


#10

I thought I did. I changed the header of the first message to solved


#11

To solve a thread, locate the item that actually solves the issue. Locate the box with the check-mark in it, Clicking this will enable the thread as being solved.

I went ahead and marked it for you :slight_smile:


#12

Thank you. So many forums. So many different rules. But this one is rather nice and easy.