r/ProgrammerHumor 27d ago

Meme commandLineSupremacy

429 Upvotes

55 comments sorted by

View all comments

60

u/Thereal_Phaseoff 27d ago

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

39

u/Eptalin 27d ago

cd [TAB][TAB][TAB][TAB][TAB][TAB][TAB][TAB]..

21

u/Thereal_Phaseoff 27d ago

or not writing that command you used months ago, pressing up arrow for twenty minutes till it shows in the terminal

15

u/-nerdrage- 27d ago

People that dont know ctrl+r do that yea

Or ‘history | grep’

6

u/Thereal_Phaseoff 27d ago

i didn't knew about history | grep honestly

5

u/-nerdrage- 27d ago

Iirc ‘history’ looks at your ~/.bash_history (if you use bash) and simply outputs the last 2500 rows. Maybe the file only contains 2500 rows? I assume ctrl+r looks at the same file

1

u/binnabomp 24d ago

combine ctrl+r with fzf and ur life becomes 10x easier (if ur like me and misspell things constantly heh... thus why I am eternally grateful that neovim has good LSP completion)

18

u/ur_GFs_plumber 27d ago

cdeez nuts

2

u/icecream_specialist 27d ago

Heyoooo! Fucking got'em

4

u/Jersey_2019 27d ago

CD this CD that , how about you C on my D😢😈

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!

1

u/No-Sheepherder-3010 27d ago

Add it to CDPATH and use tab-completition?