Skip to content

Commit 45ede1c

Browse files
committed
Merge remote-tracking branch 'upstream/master'
* upstream/master: .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 acd0198 + d600133 commit 45ede1c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.exports

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export MANPAGER='less -X';
3333
# https://stackoverflow.com/a/42265848/96656
3434
export GPG_TTY=$(tty);
3535

36+
# Hide the “default interactive shell is now zsh” warning on macOS.
37+
export BASH_SILENCE_DEPRECATION_WARNING=1;
38+
3639
# Android tools home
3740
ANDROID_HOME=/usr/local/share/android-sdk
3841
if [ -d "$ANDROID_HOME" ]; then

.gitconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
1414

1515
# Pull in remote changes for the current repository and all its submodules
16-
p = git pull --recurse-submodules
16+
p = pull --recurse-submodules
1717

1818
# Clone a repository including all submodules
1919
c = clone --recursive
@@ -79,6 +79,9 @@
7979
fi \
8080
}; f"
8181
82+
# Show the user email for the current repository.
83+
whoami = config user.email
84+
8285
[apply]
8386
8487
# Detect whitespace errors when applying a patch

.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

0 commit comments

Comments
 (0)