Git Product home page Git Product logo

dotfiles's Introduction

Dotfiles

First things first, install Xcode and open it or try and run xcode-select --install. Also if you're not me, please do not install dotfiles verbatim from this repo.

Inital Setup & Config

Setting up a new machine should be easy. Run:

curl -L https://raw.githubusercontent.com/charliewilco/dotfiles/main/init.sh | bash -s -- all

Setup

This installs Homebrew & Cask and executes a bunch of brew install commands to go and setup iTerm2, Vundle, tpm a collection of awesome utility apps, MongoDB, Node.js (this is my preferred method of installing Node it normally prevents you from having to run sudo all the time).

The config script sets up Vim and copies all my preferences for Vim / NeoVim, tmux, OhMyZSH, Hammerspoon, and puts them in their proper places. Plus exports Oceanic Next color palettes from Github and drops the ones for iTerm2 in ~/Downloads/.

Cheatsheet

There's a cheatsheet for very common things I do with Vim and command line utilities (ie ag, hub, and more to come).

SSH

You need to create a file for SSH ~/.ssh/config with the following contents:

Host *
    UseKeychain yes

It solves a lot of isses with macOS Sierra and SSH that didn't exist in previous versions.

tmux colors + Italics

There are two files here with the .terminfo extension, do the following with them:

tic -x xterm-256color-italic.terminfo
tic -x tmux-256color.terminfo
if has('termguicolors')
	" Don't need this in xterm-256color, but do need it inside tmux.
	" (See `:h xterm-true-color`.)
	if &term =~# 'tmux-256color'
		let &t_8f="\e[38;2;%ld;%ld;%ldm"
		let &t_8b="\e[48;2;%ld;%ld;%ldm"
	endif
endif
set -g default-terminal 'tmux-256color'
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'

Other Dotfiles

This is the list of dotfiles I've looked through and learned something cool from:

Contributing

First off, you're awesome for wanting to contribute. Second, please take a second to go over a few things to make this process simpler for everyone. Third, you're awesome.

Pull Requests

  • Fork this repo.
  • Push to your fork and submit a pull request.
  • Please provide a short explanation of why you made the changes you made.

License

The Unlicense

dotfiles's People

Contributors

charliewilco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dotfiles's Issues

Italics

highlight Comment gui=italic
highlight Comment cterm=italic

async complete

" Asyncomplete


let g:asyncomplete_auto_popup = 1
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
set completeopt+=preview
autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif

if has('python3')
  "" TypeScript
  call asyncomplete#register_source(asyncomplete#sources#tscompletejob#get_source_options({
        \ 'name': 'tscompletejob',
        \ 'whitelist': ['typescript'],
        \ 'completor': function('asyncomplete#sources#tscompletejob#completor'),
        \ }))

  "" UtiliSnips
    call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({
        \ 'name': 'ultisnips',
        \ 'whitelist': ['*'],
        \ 'completor': function('asyncomplete#sources#ultisnips#completor'),
        \ }))

endif

MacVim requires Xcode

macvim: A full installation of Xcode.app is required to compile this software. Installing just the Command Line Tools is not sufficient. Xcode can be installed from the App Store. Error: An unsatisfied requirement failed this build.

add elixir support and emoji

" Elixir support
 Plugin 'elixir-lang/vim-elixir'
 Plugin 'lucidstack/hex.vim' " (requires mattn/webapi-vim)
 Plugin 'slashmili/alchemist.vim'
 Plugin 'c-brenn/phoenix.vim'

To Do

  • Move to NeoVim
  • Add current ZSH theme
  • Break Up vimrc & nvimrc
  • Find all recent Homebrew additions
  • Use Oceanic Next Colorscheme Everywhere
  • Use iTerm 2 Beta
  • get oceanic next for iterm in the svn call
  • configure symlinks for dotfiles
  • installer for zsh config

custom color

adding custom color via ~/.vimrc.local

colorscheme ayu
let ayucolor="dark"
let g:lightline.colorscheme = 'ayu'

" let base16colorspace=256

" colorscheme base16-ocean
" let g:lightline.colorscheme = 'base16_ocean'

highlight Comment cterm=italic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.