←back to thread

6 points afefers | 1 comments | | HN request time: 0.207s | source

What are the most useful/essential things in your shell configuration file. Be it custom function, wrappers, aliases, etc. Please provide an explanation since it isn't always obvious to others.
1. withinboredom ◴[] No.41917978[source]
I have `git fsync` which pulls and deletes all the local branches when the remote branch is deleted.

    fsync = !git pull --rebase && git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
This is probably my most-used alias on my machine, by far.