MacOSX


To get x-windows to open on a mac: To get a scroll bar on your xwindow: create a ~/.Xdefaults file and put in it: xterm*scrollBar: true
(Hold the option key to move the scroll bar.)
To save more than 64 history lines: add xterm*saveLines: 10000 to the ~/.Xdefaults file
To set the erase to be the delete key, add this to your .Xdefaults file:
*VT100.Translations: #override \
              BackSpace: string(0x7F)\n\
              Delete:    string("\033[3~")\n\
              Home:      string("\033[1~")\n\
              End:       string("\033[4~")
*ttyModes: erase ^? 

To paste in x-windows: option-click

To prevent ssh sessions from timing out on a mac: create the file ~/.ssh/config
  Then put these lines into it:
  Host *dante.u.washington.edu
  ServerAliveInterval 240

If you create a .bashrc file you will also need a .bash_profile wherein you source it.

to rename a terminal window (from bash): echo -n -e "\033]0;name\007"

Example files
.bashrc
.Xdefaults

convert pdf document to grayscale:
1. open pdf with Preview
2. Save As...
3. select Quart Filter = Gray Tone

How to install aspell for emacs:
1. prepare for brew installation with this command: sudo chown -R $USER:admin /usr/local
2. install brew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3. run: brew doctor
4. Take ownership of Homebrew: sudo chown -R $USER /Library/Caches/Homebrew/
5. run: brew install aspell
6. Add the following line to your .emacs file: (setq ispell-program-name "aspell")
7. Open emacs, and type M-x, ispell.

Screen capture:
cmd-shift-3: capture the entire screen (saves to desktop file)
cmd-shift-4: capture selection

Back to Resources