Skip to content

Commit 41b46c5

Browse files
committed
Merge remote-tracking branch 'upstream/master'
* upstream/master: meta: rename main branch .gitconfig: make `git init` default to `main` instead of `master` (mathiasbynens#926) .gitconfig: improve `git p` alias (mathiasbynens#896) .exports: Hide zsh warning on macOS .macos: fix showing ~/Library folder in macOS 10.15 (Catalina) (mathiasbynens#917) .gitconfig: Add `g whoami`
2 parents 0175315 + c886e13 commit 41b46c5

File tree

7 files changed

+17
-6
lines changed

7 files changed

+17
-6
lines changed

.config/git/template/HEAD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ref: refs/heads/main

.exports

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ export MANPAGER='less -X';
3232
# Avoid issues with `gpg` as installed via Homebrew.
3333
# https://stackoverflow.com/a/42265848/96656
3434
export GPG_TTY=$(tty);
35+
36+
# Hide the “default interactive shell is now zsh” warning on macOS.
37+
export BASH_SILENCE_DEPRECATION_WARNING=1;

.gitconfig

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
1717

1818
# Pull in remote changes for the current repository and all its submodules
19-
p = git pull --recurse-submodules
19+
p = pull --recurse-submodules
2020

2121
# Clone a repository including all submodules
2222
c = clone --recursive
@@ -59,7 +59,7 @@
5959
# Find commits by commit message
6060
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
6161

62-
# Remove branches that have already been merged with master
62+
# Remove branches that have already been merged with main
6363
# a.k.a. ‘delete merged’
6464
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
6565

@@ -82,6 +82,9 @@
8282
fi \
8383
}; f"
8484
85+
# Show the user email for the current repository.
86+
whoami = config user.email
87+
8588
[apply]
8689
8790
# Detect whitespace errors when applying a patch
@@ -189,5 +192,9 @@
189192
190193
insteadOf = "gist:"
191194
195+
[init]
196+
197+
templateDir = ~/.config/git/template/
198+
192199
[gpg]
193200
program = gpg2

.macos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ defaults write com.apple.finder WarnOnEmptyTrash -bool false
336336
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
337337

338338
# Show the ~/Library folder
339-
chflags nohidden ~/Library
339+
chflags nohidden ~/Library && xattr -d com.apple.FinderInfo ~/Library
340340

341341
# Show the /Volumes folder
342342
sudo chflags nohidden /Volumes

.osx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# 301 https://github.com/mathiasbynens/dotfiles/blob/master/.macos
1+
# 301 https://github.com/mathiasbynens/dotfiles/blob/main/.macos

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set -- -f; source bootstrap.sh
3131
To install these dotfiles without Git:
3232

3333
```bash
34-
cd; curl -#L https://github.com/mathiasbynens/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}
34+
cd; curl -#L https://github.com/mathiasbynens/dotfiles/tarball/main | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}
3535
```
3636

3737
To update later on, just run that command again.

bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd "$(dirname "${BASH_SOURCE}")";
44

5-
git pull origin master;
5+
git pull origin main;
66

77
function doIt() {
88
rsync --exclude ".git/" \

0 commit comments

Comments
 (0)