User Tools

Site Tools


osx

This is an old revision of the document!


OSX

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

Homebrew

It's apt-get for osx.

Run the command listed here: https://brew.sh/

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
Password:  
# 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

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.

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.1505509546.txt.gz · Last modified: 2017/09/15 14:05 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki