User Tools

Site Tools



Okay here we go into OSX land I guess????


It's apt-get for osx.

Run the command listed here:

You might have to manually install the XCode Command Line tools from here, which frustratingly requires an Apple ID. If you don't, you won't have git, and brew won't work.

Better bash

Do this stuff to get bash 4.x:

$ brew install bash bash-completion
$ sudo -i
# echo "$(brew --prefix)/bin/bash" >> /etc/shells
# exit
$ chsh -s $(brew --prefix)/bin/bash

Default to brew-based utils

The shell is now changed, but if you type "bash" by itself, it still launches that ridiculous dinosaur shell that Apple ships. To change the path order to prefer installed alternatives, add this to .bashrc:

export PATH=/usr/local/bin:$PATH

Terminal settings

Import this profile, or make a new profile based on "Basic" with:

  • Correct colors (background=black, font=greyish, bold=lighter-greyish, and pull the blue brightness up a bit)
  • Decent default shell size (~100x30)
  • In 'Shell' tab, "When the shell exits" → "Close if the shell exited cleanly"
  • Set profile as default & startup

Resist the urge to start with 'Pro' (which is light-on-dark), as they think Pro means no antialiasing and a tiny font.

My kit

My environment kit does work on OSX. You just need modern Bash (see above) and modern base64:

$ brew install base64

Then deploy kit per usual.

Shell settings may not be deployed automatically – in this case, add "source ~/.mybashrc" to ~/.profile (creating this file if it doesn't exist).

Kit tweaks

  • Change ls alias from "ls –color=auto" to "ls -G" in .mybashrc
  • Remove bin/clear

One-finger drag

I can't understand why, but standard one-finger tap-then-drag isn't enabled by default. Weirdly, the option is NOT under "Trackpad", but rather in the trackpad part of the Accessibility options. See here for details.

Scroll the correct way

All scrolling is backwards by default. To fix:

System Preferences > Trackpad > Scroll & Zoom > Scroll direction: natural → OFF

More brew stuff

This is basically the cygwin list adapted for brew:

$ brew install lynx links nano wget rsync unzip vim openssh screen gcc gdb make bash-completion git python3 
osx.txt · Last modified: 2017/09/15 14:22 by tkbletsc