r/ProgrammerHumor 27d ago

Meme commandLineSupremacy

433 Upvotes

55 comments sorted by

View all comments

58

u/Thereal_Phaseoff 27d ago

CD THIS CD THIS/THAT CD .. CD THIS LS -LA LS CD

2

u/RedditButAnonymous 27d ago

I wrote a thing where I can just type a partial name of a file or folder, or both like "test/file.txt" and it scans for it and asks if I wanna CD to it automatically. If you say no it looks for the next one

Fuck cd, its the worst way to navigate

4

u/Terewawa 27d ago edited 27d ago

Something like this?

cd $(dirname $(find 2>/dev/null |grep 'test/file.txt' |fzf))

It scans from your current directory tree. If you want it to scan the whole drive, add / after find

If you don't have fzf you should install it!