dotfiles/notes/setup.md

2.4 KiB

Setup Windows

  • map caps to left-ctrl using https://sharpkeys.codeplex.com/
  • install git for windows
  • edit ~/.profile and add source ~/.bashrc
  • after installing dotfiles, edit ~/.gitconfig and change the editor to be vim instead of /usr/bin/vim

Setup Arch

  • Full disk encryption with Veracrypt

  • Store /tmp in RAM

  • Move browser cache directories to /tmp as a means of reducing file writes on SSD

  • Fix fonts by placing the following XML into /etc/fonts/conf.avail/29-prettify.conf and then symlinking: ln -s /etc/fonts/conf.avail/29-prettify.conf /etc/fonts/conf.d/29-prettify.conf

    <?xml version="1.0"?>
     <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
     <fontconfig>
     <match target="font" >
       <edit mode="assign" name="rgba" >
         <const>rgb</const>
       </edit>
     </match>
     <match target="font" >
       <edit mode="assign" name="hinting" >
         <bool>true</bool>
       </edit>
     </match>
     <match target="font" >
       <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
       </edit>
     </match>
     <match target="font" >
       <edit mode="assign" name="antialias" >
         <bool>true</bool>
       </edit>
     </match>
     <match target="font">
       <edit mode="assign" name="lcdfilter">
         <const>lcddefault</const>
       </edit>
     </match>
    </fontconfig>
    

Map caps to left-ctrl

Install clipboard getter

  • pi xsel
  • Now we can grab clipboard content in vim using :read !xsel --clipboard --output

Setting up Ruby

  • Install rvm
  • Install bundler
  • Install Ruby Docs gem install rdoc-data rdoc-data --install

    to regenerate all gem docs

    gem rdoc --all --overwrite

Setup Vim

Map to in System Preferences -> Keyboard -> Modifier Keys. Now can leave insert mode.

Setup Git

Vim might not work properly when writing commit messages. To fix, run:

$ git config --global core.editor /usr/bin/vim