

5·
1 month agoI forsee a requirement that only “approved” OS are allowed to connect to mobile networks, citing security issues.
I forsee a requirement that only “approved” OS are allowed to connect to mobile networks, citing security issues.
git() {
if [ "$1" = "cd" ]; then
shift
cd "./$(command git rev-parse --show-cdup)$*"
else
command git "$@"
fi
}
This lets you run git cd
to go to the root of your repo, or git cd foo/bar
to go to a path relative to that root. You can’t do it as an alias because it’s conditional, and you can’t do it as a git-cd
command because that wouldn’t affect the current shell.
When I first heard some countries did this it was like 20 years ago. I thought at the time it was news because they’d stopped - clearly I was wrong :/