Skip to content

Commit

Permalink
Rename .osx to .macos
Browse files Browse the repository at this point in the history
Apple renamed OS X to macOS, so this repository must follow.
  • Loading branch information
mathiasbynens committed Jun 14, 2016
1 parent 5b3c841 commit 47268d9
Show file tree
Hide file tree
Showing 8 changed files with 873 additions and 867 deletions.
8 changes: 4 additions & 4 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ alias j="jobs"
# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`
colorflag="--color"
else # OS X `ls`
else # macOS `ls`
colorflag="-G"
fi

Expand Down Expand Up @@ -53,7 +53,7 @@ alias week='date +%V'
# Stopwatch
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'

# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
# Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'

# IP addresses
Expand All @@ -74,10 +74,10 @@ alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET
# Canonical hex dump; some systems have this symlinked
command -v hd > /dev/null || alias hd="hexdump -C"

# OS X has no `md5sum`, so use `md5` as a fallback
# macOS has no `md5sum`, so use `md5` as a fallback
command -v md5sum > /dev/null || alias md5sum="md5"

# OS X has no `sha1sum`, so use `shasum` as a fallback
# macOS has no `sha1sum`, so use `shasum` as a fallback
command -v sha1sum > /dev/null || alias sha1sum="shasum"

# JavaScriptCore REPL
Expand Down
4 changes: 2 additions & 2 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function targz() {
tar -cvf "${tmpFile}" --exclude=".DS_Store" "${@}" || return 1;

size=$(
stat -f"%z" "${tmpFile}" 2> /dev/null; # OS X `stat`
stat -f"%z" "${tmpFile}" 2> /dev/null; # macOS `stat`
stat -c"%s" "${tmpFile}" 2> /dev/null; # GNU `stat`
);

Expand All @@ -55,7 +55,7 @@ function targz() {
[ -f "${tmpFile}" ] && rm "${tmpFile}";

zippedSize=$(
stat -f"%z" "${tmpFile}.gz" 2> /dev/null; # OS X `stat`
stat -f"%z" "${tmpFile}.gz" 2> /dev/null; # macOS `stat`
stat -c"%s" "${tmpFile}.gz" 2> /dev/null; # GNU `stat`
);

Expand Down
2 changes: 1 addition & 1 deletion .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
# [default] space-before-tab: looks for spaces before tabs at the beginning of a line
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
# Make `git rebase` safer on OS X
# Make `git rebase` safer on macOS
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
trustctime = false
Expand Down
850 changes: 850 additions & 0 deletions .macos

Large diffs are not rendered by default.

851 changes: 1 addition & 850 deletions .osx
100755 → 100644

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mathias’s dotfiles

![Screenshot of my shell prompt](http://i.imgur.com/EkEtphC.png)
![Screenshot of my shell prompt](https://i.imgur.com/EkEtphC.png)

## Installation

Expand Down Expand Up @@ -31,7 +31,7 @@ set -- -f; source bootstrap.sh
To install these dotfiles without Git:

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

To update later on, just run that command again.
Expand Down Expand Up @@ -65,12 +65,12 @@ git config --global user.email "$GIT_AUTHOR_EMAIL"

You could also use `~/.extra` to override settings, functions and aliases from my dotfiles repository. It’s probably better to [fork this repository](https://github.com/mathiasbynens/dotfiles/fork) instead, though.

### Sensible OS X defaults
### Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible OS X defaults:
When setting up a new Mac, you may want to set some sensible macOS defaults:

```bash
./.osx
./.macos
```

### Install Homebrew formulae
Expand Down Expand Up @@ -105,6 +105,6 @@ Suggestions/improvements
* [Nicolas Gallagher](http://nicolasgallagher.com/) and his [dotfiles repository](https://github.com/necolas/dotfiles)
* [Sindre Sorhus](http://sindresorhus.com/)
* [Tom Ryder](http://blog.sanctum.geek.nz/) and his [dotfiles repository](https://github.com/tejr/dotfiles)
* [Kevin Suttle](http://kevinsuttle.com/) and his [dotfiles repository](https://github.com/kevinSuttle/dotfiles) and [OSXDefaults project](https://github.com/kevinSuttle/OSXDefaults), which aims to provide better documentation for [`~/.osx`](https://mths.be/osx)
* [Kevin Suttle](http://kevinsuttle.com/) and his [dotfiles repository](https://github.com/kevinSuttle/dotfiles) and [OSXDefaults project](https://github.com/kevinSuttle/OSXDefaults), which aims to provide better documentation for [`~/.macos`](https://mths.be/macos)
* [Haralan Dobrev](http://hkdobrev.com/)
* anyone who [contributed a patch](https://github.com/mathiasbynens/dotfiles/contributors) or [made a helpful suggestion](https://github.com/mathiasbynens/dotfiles/issues)
9 changes: 7 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;

function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE-MIT.txt" -avh --no-perms . ~;
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude ".osx" \
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "LICENSE-MIT.txt" \
-avh --no-perms . ~;
source ~/.bash_profile;
}

Expand Down
4 changes: 2 additions & 2 deletions brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ brew update
# Upgrade any already-installed formulae.
brew upgrade --all

# Install GNU core utilities (those that come with OS X are outdated).
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
Expand Down Expand Up @@ -41,7 +41,7 @@ brew install wget --with-iri
brew install ringojs
brew install narwhal

# Install more recent versions of some OS X tools.
# Install more recent versions of some macOS tools.
brew install vim --override-system-vi
brew install homebrew/dupes/grep
brew install homebrew/dupes/openssh
Expand Down

0 comments on commit 47268d9

Please sign in to comment.