tvl-depot/README.md

107 lines
4.1 KiB
Markdown
Raw Normal View History

2016-05-24 17:37:51 +02:00
# My Mac Configuration
2016-12-17 23:45:50 +01:00
I'm documenting this primarily for personal use. This reposity contains shell configs, vim configs, emacs configs, a list of commonly used applications, and other items.
The overall goal of this repository is to reduce the time it takes to adopt a new computer and equip it with the necessary tooling to do meaningful work.
2016-05-24 17:37:51 +02:00
2016-12-16 19:26:10 +01:00
# Neovim
The following snippet fixes the `<C-h>` issue in neovim on macOS.
```
$ infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
$ tic $TERM.ti
```
2016-12-17 23:45:50 +01:00
2017-01-04 06:02:53 +01:00
## True Color and Italics in tmux and vim
### TrueColor
Note: make sure that the terminal you are using supports TrueColor (hint: recent version of iTerm2 do). Also make sure that the tmux version you are using supports TrueColor (hint: versions north of 2.2 should).
* Terminal: recent versions of iTerm 2 should support TrueColor
* Tmux: versions 2.2 and after should support TrueColor
* NeoVim: recent versions of NeoVim should support TrueColor
Enable TrueColor in your `~/.vimrc` (already done in this repository):
```viml
set termguicolors
```
Enable TrueColor in your `~/.tmux.conf` (already done in this repository):
NOTE: This may conflict with the setting for italics. Need to verify to confirm / disconfirm this (pending).
```
set -ga terminal-overrides ",xterm-256color-italic:Tc"
```
### Italics
2016-12-17 22:20:27 +01:00
In the file `/configs/.tmux.conf` there is a line to add italics support to tmux:
```
set -g default-terminal "tmux-256color-italic"
```
2016-12-17 23:46:48 +01:00
The `$TERM` entry, `tmux-256color-italic`, will be unavailable until you add the file, `/configs/tmux-256color-italic`, to your terminal database. You can do this with the following command:
2016-12-17 22:20:27 +01:00
```bash
$ tic ~/pc_settings/configs/tmux-256color-italic
```
2016-12-17 23:45:50 +01:00
## Ligature Support
To support ligatures make sure Hasklig is installed (link at the bottom). Ensure that you are using an iTerm 2 build that supports ligatures. With both of these tasks completed, ligatures should function in Neovim.
2016-05-24 17:37:51 +02:00
### Commonly used applications
2016-12-17 23:49:30 +01:00
* dash - provides quick access to offline documentation (use with Alfred)
* Alfred - replaces macOS Spotlight and integrates with external Apps like Dash
2016-08-01 19:29:45 +02:00
* homebrew - necessary for procuring shell applications
* karabiner - `key-repeat: 50ms delay-until-repeat: 300ms` increase your Mac's key repeat settings beyond the default range
2016-05-24 17:37:51 +02:00
* spectacle - resize and move your windows with keyboard shortcuts
* iterm - substitute for Terminal application
2016-12-17 23:45:50 +01:00
* oh my zsh - a full suite of z-shell extensions
2016-05-24 17:37:51 +02:00
* sublime text - text editor
* webstorm - web IDE
2016-06-14 16:18:09 +02:00
* pycharm - python IDE
2016-05-24 22:48:41 +02:00
* docker - for running containers and virtual environments
* mou - markdown editor
2016-06-14 16:18:09 +02:00
* f.lux - modulates the blue amount from the screen throughout the day
2016-06-23 17:15:29 +02:00
### Sublime Text Packages
* SublimeLinter - lints files
* SublimeLinter-contrib-eslint - lints using eslint
* Oceanic Next Theme - buffer and editor theme
* Vintageous - extended Vim key-binding support
2016-05-26 21:19:28 +02:00
* Vintageous-Origami - extended Vintageous support for window pane mgt (ctrl + w) `"vintageous_use_ctrl_keys": true`
2016-05-26 21:19:58 +02:00
* Origami - dep. of Vintageous-Origami (see above)
* babel-sublime - supports JSNext features
2016-06-08 15:35:53 +02:00
* SublimeCodeIntel - robust autocomplete engine
2016-06-08 16:08:33 +02:00
* PackageResourceViewer - quickly view / edit installed Sublime Packages to enhance customization options
2016-06-14 16:19:54 +02:00
* SidebarEnhancements - extensions for Sublime Text's sidebar
2016-06-23 16:25:54 +02:00
* SublimeREPL - convenient REPL for ST
2016-07-01 17:22:12 +02:00
* FoldComments - collapse comments with keystrokes
2016-05-27 16:04:20 +02:00
#### Sublime preferences (user)
2016-06-23 17:13:30 +02:00
[Preferences.sublime-settings](https://github.com/wpcarro/pc_settings/blob/master/Preferences.sublime-settings)
2016-05-27 16:04:20 +02:00
2016-06-23 17:15:29 +02:00
#### Sublime keybindings (user)
[Default (OSX).sublime-keymap](https://github.com/wpcarro/pc_settings/blob/master/Default%20(OSX).sublime-keymap)
### other notes
2016-11-17 18:10:22 +01:00
* Install [Hasklig](https://github.com/i-tu/Hasklig) for ligature support in Elm, Elixir, etc
* Install [FiraCode](https://github.com/tonsky/FiraCode/wiki) for ligature support
2016-11-17 18:05:41 +01:00
* Install [Operator Mono](http://www.typography.com/blog/introducing-operator) for expressive Italics
* Install powerline fonts
2016-05-24 18:51:52 +02:00
* add Adobe Source Code Pro font for shell and text editors
* increase trackpad / mouse speed to maximum levels