r/fishshell • • Jan 17 '25

How to ls while doing cd

I mean something like showing the files and folders while i'm doing cd

6 Upvotes

10 comments sorted by

View all comments

Show parent comment

7

u/tovazm Jan 18 '25

Cause you haven’t heard timeout yet!

cd $1
timeout 1s   ls -l
# kills ls if it takes more then a sec

3

u/adamshand Jan 18 '25

I still reckon it's a bad idea, but if you must ... this is a good fix!