Skip to content

Commit 4d4e6d4

Browse files
committed
Merge branch 'master' of github.com:mathiasbynens/dotfiles into master
* 'master' of github.com:mathiasbynens/dotfiles: 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)
2 parents 891b8ee + c886e13 commit 4d4e6d4

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@ export MANPAGER='less -X';
3333
# https://stackoverflow.com/a/42265848/96656
3434
export GPG_TTY=$(tty);
3535

36-
# suppress MacOS Catalina zsh warning
37-
export BASH_SILENCE_DEPRECATION_WARNING=1
38-
36+
# Hide the “default interactive shell is now zsh” warning on macOS.
37+
export BASH_SILENCE_DEPRECATION_WARNING=1;

.gitconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
# Find commits by commit message
5656
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
5757

58-
# Delete merged local branches
58+
# Remove branches that have already been merged with main
59+
# a.k.a. ‘delete merged’
5960
dm = !"git branch --merged | ack -v '(\\*|^\\s*master$|^\\s*dev)' | xargs -n 1 git branch -d"
6061
# Delete merged REMOTE branches, except master and dev
6162
dmr = !"git branch -r --merged | grep origin | grep -v '>' | grep -v master | grep -v dev | sed 's/origin\\///' | xargs -n 1 git push --delete origin"
@@ -199,3 +200,6 @@
199200
200201
insteadOf = "gist:"
201202
203+
[init]
204+
205+
templateDir = ~/.config/git/template/

.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)