Giter Club home page Giter Club logo

dotfiles's Introduction

loyale@'s Dotfiles

This is my dotfiles.

There are many like it, but this one is mine.

My dotfiles is my best friend.

It is my life.

I must master it as I must master my life.

Installation

  • clone from git
  • navigate into directory
  • run ./setup.sh

Information Isolation

You work for a company, foo, and you want to keep their information in a private git server

  • create a new foo/ directory, stow -t ~ foo will symlink its contents to ~
  • consider adding foo/ to .gitignore in the public repo to prevent accidental publishing
  • anything that hints at company info should be in foo/
company info that would go here instead goes here
~/.zshrc foo/.config/zsh/sources/foo.zsh
~/.vimrc foo/.vim/config/{plugins,maps,settings}.local.vim
~/.example_foo_config foo/.example_foo_config

Vim

  • ~/.vimrc calls into 3 subfiles in ~/.vim/config/
    • plugins (load and install plugins, do plugin config)
    • settings (configure built in settings)
    • maps (set up user defined maps)
  • local modifications
    • changes to plugins/settings/maps should go in e.g. ~/.vim/config/plugins.local.vim
    • functions should go in ~/.vim/autoload/ - sourced on first use
    • self contained chunks can go in ~/.vim/plugin/ - always sourced
    • filetype specific plugin lives in ~/.vim/ftplugin/language.vim

Zsh

  • order of operations
    • ~/.zshenv
      • runs in all shells, even background
      • has cheap stuff we always want e.g. $EDITOR $PAGER $PATH
    • ~/.zshenv.local
      • local version of ~/.zshenv
    • ~/.pre_profile
      • local modifications to ~/.zshrc that run before
    • ~/.zshrc
      • runs in interactive shells
      • has most config that should apply to all machines
    • ~/.config/zsh/sources/*
      • all files in this dir are sourced within zshrc
    • ~/.post_profile
      • local modifications to ~/.zshrc that run after
  • local modifications
    • prefered method is to add new file in ~/.config/zsh/sources/
    • ~/.pre_profile/~/.post_profile/~/.zshenv.local are available if necessary

dotfiles's People

Contributors

y4le avatar

Watchers

 avatar  avatar

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.