this post was submitted on 25 Oct 2023
2302 points (99.1% liked)

Programmer Humor

32721 readers
345 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I'm trying out Obsidian for taking notes, and this made me laugh.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] homura1650@lemmy.world 23 points 1 year ago* (last edited 1 year ago) (1 children)

Tricky question, but I think I have a solution:

:!readlink /proc/$PPID/fd/* | grep "$(dirname %)/.$(basename %).sw" | xargs -I{} rm "{}" ; kill -9 $PPID

[โ€“] isVeryLoud@lemmy.ca 5 points 1 year ago

Technically correct