Skip to content

Vim, Zsh aimed at high-portability, OO design

License

Notifications You must be signed in to change notification settings

frecklebit/dotfiles.old

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Full glory!

Overview

My config files, mainly Vim, Tmux, Git & Zsh aimed at working in Linux & OSX.

Key Features

  • Uses NeoBundle as package manager.
  • Uses Unite as an all-around explorer.
  • Zsh with Oh-My-Zsh.
  • Awesome shell prompt based on pure
  • Geared towards portability.
  • Equipped to handle web development (HTML/CSS/Js/Frameworks/etc...)
  • NERDTree/CtrlP for browsing

Dependencies

  • Git

Installation

# Git clone this repository into your `~/.dotfiles`
$ git clone https://github.com/pgilad/dotfiles.git ~/.dotfiles

# Make sure you have Zsh as your shell
$ chsh -s /bin/zsh
$ exec zsh

# Run bootstrap script on Linux/OSX
$ . ~/.dotfiles/install/install.zsh

# Optionally apply hacker defaults on OSX
$ . ~/.dotfiles/install/osx.sh

# After installation is complete, open a new shell or run:
$ . ~/.zshrc
$ zplug install
$ zplug update --self

What happens during install & load

  • Files from link are symlinked to ~/.
  • If ~/.extra exists it is sourced on profile load.
  • Git config is extended with ~/.gitconfig.local if it exists.

Overriding settings

Profile overrides

Place any profile load overrides you want in ~/.extra

Git overrides

To override .gitconfig params add a ~/.gitconfig.local file. Anything you add here will extend and override existing params from .gitconfig.

For example:

[user]
    name = Gilad Peleg
    email = [email protected]

Customizing iTerm2 Themes:

  • Clone iTerm2-Color-Schemes
  • Import your favorite theme in iTerm2 -> Profiles -> Colors -> Import Theme
  • Profit$$

Vim

  • Main file is _vimrc.
  • Bundles files (bundled using NeoBundle) is bundles.vim.
  • Update bundles using NeoBundleUpdate.
  • Custom snippets are in the directory mysnippets and are auto-loaded according to filetype.
"@author Gilad Peleg
"@license MIT 2014
"@website https://github.com/pgilad/dotfiles

" Note: Skip initialization for vim-tiny or vim-small.
if !1 | finish | endif
" Note: Vim is old
set nocompatible

let g:config =  {
            \ 'baseDir': '~/.dotfiles/vim/rc/',
            \ 'loadFiles': {},
            \ 'bundlesPath': '~/vimfiles/bundle/',
            \ 'spellDir' : '~/.dotfiles/vim/spell/',
            \ 'spellFile' : '~/.dotfiles/vim/spell/en.utf-8.add',
            \ 'undoDir' : '~/.cache/undo/',
            \ 'env' : {
            \   'windows': has('wind16') || has('win32') || has('win64'),
            \   'cygwin': has('win32unix'),
            \   'mac': has('mac'),
            \   'unix': has('unix') && !has('gui_macvim')
            \ }
            \}

" map leader keys
let g:mapleader = ","
let g:maplocalleader = ","

set guioptions=Mc
" set guioptions+=a " visual select auto-copy to clipboard

if has('syntax')
    syntax off
    filetype plugin indent off
endif

" How to quickly load the files:
" Mapping     |  File
" ---------------------------
" <leader>eg  |  Gui
" <leader>eb  |  Bundles
" <leader>es  |  Settings
" <leader>em  |  Mappings
" <leader>ea  |  autoCommands
for fileToLoad in ['bundles', 'settings', 'mappings', 'autoCommands']
    " set filename
    let b:filePath = g:config.baseDir . fileToLoad . '.vim'
    " set file object in config
    let g:config.loadFiles[fileToLoad] = b:filePath
    " source script
    silent execute 'source ' . fnameescape(expand(b:filePath))
endfor

set secure

Zsh

  • Uses Zplug alongside customization and completion

Thanks (in no particular order)

License

MIT @Gilad Peleg

About

Vim, Zsh aimed at high-portability, OO design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Vim Script 66.8%
  • Shell 28.4%
  • Ruby 4.2%
  • Other 0.6%