Skip to content

Zsh managed by Zplug, Vim managed by NeoBundle

License

Notifications You must be signed in to change notification settings

aeldaly/dotfiles-old

This branch is 8 commits ahead of, 182 commits behind pgilad/dotfiles:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 22, 2017
Apr 23, 2023
Apr 23, 2023
Aug 29, 2014
Jul 30, 2017
Sep 15, 2018
May 3, 2015
May 6, 2014
Jul 6, 2014
Jun 26, 2019
Mar 31, 2014
Feb 13, 2019
Feb 13, 2019
Mar 12, 2021

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.
  • Zsh with Zplug.
  • 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

# To update plugins
$ zplug update

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

Zsh managed by Zplug, Vim managed by NeoBundle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 48.4%
  • Shell 47.1%
  • Vim Snippet 2.4%
  • Ruby 1.6%
  • Other 0.5%