Skip to content

Commit

Permalink
2/23/2024
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Feb 23, 2024
1 parent 15c04bb commit b230dfe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .10_macos.bash
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ flush() {
}

# Prefer GNU's coreutils binaries
if [[ -x "$(command -v brew)" && -d "$(brew --prefix)/Cellar/coreutils" ]]; then
alias date="gdate"
alias sed="gsed"
fi
command -v gdate > /dev/null && alias date="gdate"
command -v gsed > /dev/null && alias sed="gsed"

# macOS has no `md5sum`, so use `md5` as a fallback
command -v md5sum > /dev/null || alias md5sum="md5"
Expand Down
4 changes: 2 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash"
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash" || true
##### Fig (Pre) #####


Expand All @@ -15,4 +15,4 @@ fi
##### Fig (Post) #####

# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash"
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash" || true
4 changes: 2 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" || true
##### Fig (Pre) #####


Expand All @@ -26,4 +26,4 @@ fi
##### Fig (Post) #####

# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh" || true
6 changes: 6 additions & 0 deletions settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
# https://linearmouse.app/
# https://brew.sh/

if ! sudo -n true &> /dev/null; then
echo -e "\033[1;33mWARN:\033[0m you will be asked for your password to run 'pmset' and other utilities\n"
fi

# ***** Settings > Wi-Fi *****

# ***** Settings > Bluetooth *****
Expand Down Expand Up @@ -116,6 +120,8 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
# Turn off auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
defaults write NSGlobalDomain WebAutomaticSpellingCorrectionEnabled -bool false
# Turn off text replacements (requires restart?)
defaults write NSGlobalDomain WebAutomaticTextReplacementEnabled -bool false
# TODO: keyboard brightness

# ***** Settings > Mouse *****
Expand Down

0 comments on commit b230dfe

Please sign in to comment.