Giter VIP home page Giter VIP logo

dotfiles-1's Introduction

Dot files

This is a collection of dot files I use on my laptops, which set up useful command line things like:

  • handy aliases such as ll (see the .aliases file for a full list)
  • colouring of the terminal
  • showing the current directory and current git branch in your terminal prompt
  • git branch completion in your terminal

Not invented here

This repo was inspired by https://github.com/mathiasbynens/dotfiles.

The .vimrc file was inspired by Gary Bernhardt's .vimrc.

Setup

  1. Clone this repo anywhere on your machine, e.g. your home directory.

  2. If you did not put the dotfiles directory in your home directory, adjust the value of $dotfiles_dir in .dotfiles_main to the location of your the dotfiles directory.

  3. Check if you have a .bash_profile file in your home directory. If not, create it.

  4. Add the following to your .bash_profile, adjusting the path to your dotfiles directory if necessary:

if [ -f ~/dotfiles/.dotfiles_main ]; then
  . ~/dotfiles/.dotfiles_main
fi
  1. Source your .bash_profile file by running . ~/.bash_profile. You might have to restart any open command line sessions for the changes to kick in.

  2. To load the .vimrc file, create a symlink from your home directory called .vimrc pointing to ~/dotfiles/.vimrc (adjust the path to your dotfiles directory if necessary).

e.g.

ln -s /Users/kat/dotfiles/.vimrc /Users/kat/.vimrc

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.