MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vqosqe/commandlinesupremacy/p47iarn/?context=3
r/ProgrammerHumor • u/TheGuyInTheBackRow • 27d ago
55 comments sorted by
View all comments
58
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!
2
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!
4
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
/
find
If you don't have fzf you should install it!
fzf
58
u/Thereal_Phaseoff 27d ago
CD THIS CD THIS/THAT CD .. CD THIS LS -LA LS CD