Giter Site home page Giter Site logo

fvoges / dotfiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puppetlabs/puppetlabs-rcfiles

4.0 2.0 3.0 667 KB

Customizations for vim, shell, screen, ruby, etc... The goal is to quickly provide an efficient working environment.

Shell 29.47% Vim Snippet 26.13% Vim Script 44.40%

dotfiles's Introduction

DOTFILES

ℹī¸ The repo has been renamed to make it compatible with Strap.

My own collection of rcfiles for UNIX shells.

NOTE: This is provided AS IS. No warranty. I'm not responsible if this eats your files, or lunch, does anything you don't like, etc. Use at your own risk.

What is this?

This is a collection of rcfiles (or dotfiles) that I use for my shell environments (currently Linux, Mac OS, and Cygwin).

These collections of files started as a fork of puppetlabs/puppetlabs-rcfiles, but has grown into its own thing over time.

What does it do?

Mainly, it configures bash and vim. It also contains configurations for screen, tmux and rubygems. Be aware that the tmux configuration is untested as I stick to screen for availability reasons (same reason I stick to bash instead of zsh).

How do I use it?

I recommend creating your own fork as you will probably want to change this to suit your preferences.

The install process is simple, clone into a directory (I use $HOME/src/rcfiles), then run the install script. Done

The install script tries to preserve the existing files. But you should definitely check the script before running it.

After installing the rcfiles, you need to reload your environment (just run exec bash).

Git config

This will also take over your Git config file. But if you use Git for both work and personal stuff, then chances are that you require more than one configuration. At least to change your email address.

To deal with that, the gitconfig in the repo uses the include option to load ~/.gitconfig.local. Below, you can see what kind of options I keep in the local file.

# Example contents for ~/.gitconfig.local
[user]
  name = Your Name
  email = [email protected]
  signingkey = FEFEFEFEF
[commit]
  gpgsign = true
[github]
  user = example

To manage options inside the local file, you can use the -f command line option for git config.

git config -f ~/.gitconfig.local user.name 'Your Name'
git config -f ~/.gitconfig.local user.email '[email protected]'

Why not use some more advanced shell prompt?

Because I tend to install this on every account, even temporary ones. So I don't what to depend on any external package. It has to work on Ubuntu, Debian, Gentoo, SLES, Mac OS, Cygwin. On current versions as well as old ones.

Why not use plugin manager for Vim?

Because I tend to install this on every account. I want to keep it as simple to install as possible.

Well.. I've finally migrated to a plugin manager. The config now uses the built-in plugin support for VIM 8.0+

Note to self: git submodule update --remote --merge

Puppet setup

The repo now includes ALE, so now you can add the Puppet Language Server and have a modern code editor experience. See this Vox Pupuli article for more information.

Update submodules

git submodule update --remote --merge

dotfiles's People

Contributors

fvoges avatar nanliu avatar

Stargazers

 avatar  avatar  avatar  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.