GithubHelp home page GithubHelp logo

azrobbo / dotfiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mnewt/dotfiles

1.0 1.0 0.0 1.38 MB

shell settings, mostly for fish with bash fallback, for osx and linux

Shell 3.08% CoffeeScript 0.13% CSS 0.04% Python 6.49% Perl 1.42% Ruby 0.12% Emacs Lisp 67.47% PostScript 0.01% Clojure 0.01% JavaScript 0.60% Vim Script 20.64%

dotfiles's Introduction

Some dotfiles

Targeted at fish shell

Older zsh dotfiles are still present at this time

Install

Fork this repo on Github.

Clone your fork (replace your-github-name with your Github name).

git clone [email protected]:your-github-name/dotfiles.git ~/.dotfiles
cd ~/.dotfiles

Examine the settings file, named settings:

# Settings
# This file tells install.sh what to ignore, link, copy, and create
# List files (and globs) separated by spaces
# The below options are in order of priority, so ignore overrides
# link_children, which overrides copy, which overrides link
# That is why it's OK to just specify '*' for link

# ignore these files (modifies include)
ignore='settings scripts Icon* *.md *.sh *.txt'

# create directory itself (not contents), then link the children of the directory
# NOTE: it will not delete the directory. If you want to replace the directory,
#				delete it first, then run install.sh
link_children='config'

# just copy these files
copy=''

# list of files to link
link='*'

Run the installer.

./install.sh

It creates symlinks for all dotfiles in your home directory. You can safely run this file multiple times to update. you may need to use the --force option to get the results you want.

Included are fish dotfiles. To install and switch your shell to fish on OS X:

# Install GNU coreutils, fish, grc, and vimpager
brew coreutils install fish grc vimpager
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish

And then run fish

fish -l
fish_update_completions

Command reference for install.sh:

	install.sh version 0.5

	Run from a dotfile directory, links all files and directories into the current
	user's home directory

	./install.sh [-f] [-h] [-t] [-c config-file] [source dir] [destination dir]

	  -f (--force)    : Overwrite any files / directories in the destination dir
	                    (default is false)
	  -h (--help)     : This help message
	  -t (--test)     : Don't actually do anything, just show what would be done
	                    (default is false)
	  -c (--config)   : Specify configuration file. Example file contents:
	                    # Settings
	                    # (you can use globs)
	                    # list of files to link
	                    link='*'
	                    # ignore these files (modifies include)
	                    ignore='Icon* *.md *.sh *.txt scripts'
	                    # just copy these files
	                    copy=''
	                    # create directory itself (not contents), then link the
	                    # children of the directory
	                    link_children='config'
	                    (defaults are in `install.sh`)

	  source dir      : Contains dotfiles. They are expected to NOT have leading
	                    '.' For example, if the dotfile is '.bashrc' then in the
	                    source dir it is 'bashrc'
	                    (default is current directory)
	  destination dir : Where to put symlinks
	                    (default is '~')

Applications

Atom

Install atom, then run this to install packages

apm install --packages-file packages.txt

To save the list of currently installed packages

apm list --bare --installed --dev false > packages.txt

dotfiles's People

Contributors

azrobbo avatar jferris avatar mike-burns avatar mnewt avatar qrush avatar wolfeidau avatar

Stargazers

 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.