this post was submitted on 18 Jul 2024
265 points (98.5% liked)
Programmer Humor
19572 readers
1838 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, I'd write this as a single
update
script with options toupdate vimplugins
orupdate pkg
orupdate all
.I see that you want it to be a function so you can get the chdir as a side effect, but mixing that with updating doesn't make sense to me.