Giter VIP home page Giter VIP logo

dotfiles's Introduction

Sterling Hamilton's Dotfiles

Installation

Nothing much to this at the moment. Clone it down, and run the bash script.

Here's how I run it:

$ pwd
/home/grok/Code/dotfiles

$ chmod u+x install.rb

$ ./install.rb
     ~/Code/dotfiles/gitconfig -> ~/.gitconfig
     ~/Code/dotfiles/gitignore -> ~/.gitignore
          ~/Code/dotfiles/nvim -> ~/.config/nvim
         ~/Code/dotfiles/zshrc -> ~/.zshrc

Testing

You can go to the home directory and check that the symlink exists.

# Find all symbolic links (excluding those pointing to
# directories) in the current directory (non-recursively)
# and list them with colorized output using the `ls` command.

$ cd ~
$ find . -maxdepth 1 -type l ! -xtype d -exec ls --color=auto -l {} +

lrwxrwxrwx 1 grok grok 34 Jun 20 09:50 ./.gitconfig -> /home/grok/Code/dotfiles/gitconfig
lrwxrwxrwx 1 grok grok 34 Jun 20 09:50 ./.gitignore -> /home/grok/Code/dotfiles/gitignore
lrwxrwxrwx 1 grok grok 30 Jun 20 09:50 ./.zshrc -> /home/grok/Code/dotfiles/zshrc

Safegaurds

If you run this and things already exist, it will attempt to make sure you really wanted to nuke those pre-existing options:

Target /home/grok/.gitconfig exists. Do you want to remove it? [y/N]

Skipping /home/grok/.gitconfig
Target /home/grok/.gitignore exists. Do you want to remove it? [y/N]

Skipping /home/grok/.gitignore
Target /home/grok/.config/nvim exists. Do you want to remove it? [y/N]

Skipping /home/grok/.config/nvim
Target /home/grok/.zshrc exists. Do you want to remove it? [y/N]

Skipping /home/grok/.zshrc
No changes made.

and if you said y to all of them:

Target /home/grok/.gitconfig exists. Do you want to remove it? [y/N]
y
Target /home/grok/.gitignore exists. Do you want to remove it? [y/N]
y
Target /home/grok/.config/nvim exists. Do you want to remove it? [y/N]
y
Target /home/grok/.zshrc exists. Do you want to remove it? [y/N]
y
     ~/Code/dotfiles/gitconfig -> ~/.gitconfig
     ~/Code/dotfiles/gitignore -> ~/.gitignore
          ~/Code/dotfiles/nvim -> ~/.config/nvim
         ~/Code/dotfiles/zshrc -> ~/.zshrc

dotfiles's People

Contributors

grok avatar

Watchers

 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.