MacOS

From DrewWiki
Jump to navigation Jump to search

macOS Sonoma 14.2.1

First manually:

  • brew
  • synergy
  • google chrome
  • google drive
  • firefox
  • audacity
  • vscode

Enable drag on gesture:

defaults write -g NSWindowShouldDragOnGesture -bool true
# reboot

Then Via Brew:

brew install android-file-transfer ansible ansible-lint atomicparsley ffmpeg gimp git glance gnu-sed gnupg gh google-cloud-sdk inkscape iterm2 imagemagick iperf3 java jq keepassxc mqtt-explorer nmap nvm openconnect openssl openvpn p7zip pstree psutils qbittorrent rename rbenv shellcheck slack telnet tfenv tunnelblick watch wget wireguard wireshark vlc vnc-viewer xpdf xz zsh-completion

# no longer in brew encfs istats mqtt-explorer sqlitebrowser unrar macfuse

With brew cask:

brew install --cask qflipper raspberry-pi-imager stats

After macfuse is installed

brew install sshfs encfs

~/.zshrc

export PATH="$HOME/.local/bin:$PATH"

# TODO how does this work in zsh
#export HISTCONTROL=ignoredups:erasedups  # no duplicate entries
#export HISTSIZE=100000                   # big big history
#export HISTFILESIZE=100000               # big big history
#shopt -s histappend                      # append to history, don't overwrite it

# Save and reload the history after each command finishes
# export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"

export EDITOR=vim
export MVN_HOME=/usr/local/maven

export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm"

function set_aws {
  eval $(awsenv shell $1)
}
function login_aws {
  open $(awsenv console $1)
}

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

export PATH="$HOME/.tfenv/bin:$PATH"

complete -C '$HOME/.local/bin/aws_completer' aws

function set_aws {
  eval $(awsenv shell $1)
}
function login_aws {
  open $(awsenv console $1)
}

source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"

source "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"

# may need chmod -R go-w '/usr/local/share'
autoload -Uz compinit && compinit

~/.gitconfig

[user]
        name = Drew Holt
        email = XXXXXXXXXXXXXXXX
[gpg]
        program = /usr/local/bin/gpg
#[credential]
#       helper = osxkeychain
[color]
        status = auto
        branch = auto
        interactive = auto
        diff = auto

Then Larger Via Brew Cask:

brew cask install libreoffice

Pipe to clipboard from terminal

cat list_of_stuff | pbcopy

Setup git

populate or import ~/.gnupg/
gpg --list-keys
brew install pinentry-mac
git config --global gpg.program /usr/local/bin/gpg

Other OS X Software

  • XQuartz
  • SoundFlower - https://github.com/mattingalls/Soundflower
  • 32 Lives (32-bit to 64-bit Audio Units and VST plug-ins adapter)
  • 3T MongoChef
  • Android Studio
  • Arduino
  • Blender
  • Cura
  • IntelliJ IDEA CE
  • OminGraffle
  • Slic3r
  • VirtualBox
  • Xcode
  • ChefDK
  • SketchUp
  • Gitter

other brew

gradle24
maven
rvm ** using rbenv now

To-do

  • Time Machine Backup
  • Proper Windows -> Mac modifier keys
  • Make Windows key not invoke unity when in synergy or Virtualbox