Giter Site home page Giter Site logo

tushparte / dot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gibfahn/dot

0.0 0.0 0.0 1.91 MB

My dotfiles and setup scripts

CSS 1.17% Shell 57.44% AutoHotkey 1.01% CoffeeScript 0.14% Vim Script 17.25% Lua 2.79% Ruby 1.33% Python 15.99% JavaScript 2.04% Vim Snippet 0.22% AppleScript 0.63%

dot's Introduction

Gib's Dotfiles

Contains everything I use to setup a new machine (except ssh and gpg keys).

How to run

curl --create-dirs -Lo ~/bin/up https://github.com/gibfahn/up-rs/releases/latest/download/up-darwin
chmod +x ~/bin/up
~/bin/up link --git-url https://github.com/gibfahn/dot --git-path ~/code/dot --from ~/code/dot/dotfiles
~/code/dot/up

Then see manual.md.

Lite (non-root) setup

Useful for remote machines you don't own (you still want some niceties, but you can't install a bunch of packages). Just copy and paste this one-line command:

git clone https://github.com/gibfahn/dot -o up && cd dot &&
  GIT_NAME=$(git config --global user.name) GIT_EMAIL=$(git config --global user.email) NO_SUDO=true ./up

How to update to the latest master

./update

Manual setup

Everything should be pretty self-explanatory and commented, it's all basic bash scripting. From ./up you can see what scripts get run. Each of them can be run individually (and run more than once).

If you don't have root (and don't want sudo prompts), just do:

export NO_SUDO=true

The scripts change your default shell to zsh, if you don't want this change $NEWSHELL to the path to the shell you'd like (or an empty string to not change shell). Make sure the shell you choose is in /etc/shells.

export NEWSHELL=/usr/local/bin/fish # Or NEWSHELL="" to keep current shell.

If you just want to update your dotfile symlinks, you can just run:

./link

Dotfiles are pretty personal, so feel free to adapt this repo as you wish. If you make a change feel free to send a Pull Request, you might fix something for me!

Adding a new file to your dotfiles

As long as it goes in $HOME, just put it in the same relative directory inside ./dotfiles/ (so ~/.bashrc becomes dot/dotfiles/.bashrc). If you rerun link it should get symlinked into the right place.

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.