GithubHelp home page GithubHelp logo

straker / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 637 KB

My personal dotfiles setup to configure any new Mac, based on https://github.com/nicksp/dotfiles

License: MIT License

Shell 100.00%
dotfiles

dotfiles's Introduction

Steven Lambert's Dotfiles

My personal dotfiles setup to configure any new Mac, based on https://github.com/nicksp/dotfiles.

Features

  • brew, brew cask, nvm, node LTS, and http-server
  • Chrome, Firefox, Opera, Sublime Text, Slack, Postman, and Spotify
  • iTerm with custom theme (based on Remy Sharp's terminal theme)
  • custom Sublime Text settings and keybindings, with some default Packages installed
  • custom OS X Defaults configured to my liking

Installation

This installation will overwrite all previous settings and files with no backups. It assumes the Mac is new so does not check before installing things and is expected to only run once.

  1. Download or clone the repository to any location
  2. Run the main install script sh install.sh
  3. Enter your password when prompted

dotfiles's People

Contributors

straker avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dotfiles's Issues

Update sublime preferences files

{
	"added_words":
	[
		"Inline",
		"inline",
		"hyperlinks",
		"rgb",
		"cmyk",
		"middleware",
		"favicon",
		"langs",
		"json",
		"Prepend",
		"webkit",
		"Flexbox",
		"prepend",
		"chai",
		"Mixins",
		"localhost",
		"parsible",
		"plugins",
		"uglified",
		"uglify",
		"repo",
		"stylesheet",
		"โ€“",
		"flexbox",
		"mixins",
		"polyfill",
		"workflow",
		"globstar",
		"html",
		"gulpfile",
		"plugin",
		"gulpfiles",
		"npm",
		"frontend",
		"backend",
		"whitelist",
		"codebase",
		"workflows",
		"transpile",
		"transpiled",
		"unminified",
		"sourcemap",
		"online",
		"internet",
		"javascript",
		"refactor",
		"modals",
		"prepended",
		"pixelated",
		"assistive",
		"offline",
		"Rebecca",
		"Checkbox",
		"viewport",
		"memoize",
		"Polyfills",
		"polyfills",
		"metadata",
		"alertdialog",
		"multiselectable",
		"listitem",
		"pullquote",
		"combobox",
		"searchbox",
		"spinbutton",
		"progressbar",
		"readonly",
		"autocomplete",
		"listbox",
		"textbox",
		"const",
		"rowgroup",
		"menubar",
		"columnheader",
		"multiline",
		"tablist",
		"hyperlink",
		"toolbar",
		"gzipped",
		"Webpack",
		"labelledby",
		"describedby",
		"tooltip",
		"unallowed",
		"iframes",
		"memberof",
		"configs",
		"config"
	],
	"always_show_minimap_viewport": true,
	"binary_file_patterns":
	[
		"*.jpg",
		"*.jpeg",
		"*.png",
		"*.gif",
		"*.ttf",
		"*.tga",
		"*.dds",
		"*.ico",
		"*.eot",
		"*.pdf",
		"*.swf",
		"*.jar",
		"*.zip",
		"node_modules/*.*"
	],
	"bold_folder_labels": true,
	"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme",
	"dictionary": "Packages/Language - English/en_US.dic",
	"draw_minimap_border": true,
	"font_size": 15,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"JsFormat",
		"Markdown",
		"Sass",
		"Vintage"
	],
	"ignored_words":
	[
		" ",
		"Bifrost",
		"Deque",
		"Gruntfile",
		"Rollup",
		"activedescendant",
		"afterword",
		"app",
		"apps",
		"axe",
		"backlink",
		"begin{document",
		"begin{singlespace",
		"begin{tightcenter",
		"bf\\uline",
		"biblioentry",
		"biblioref",
		"bifrost",
		"checkbox",
		"checkboxes",
		"cis",
		"colcount",
		"colindex",
		"colordef",
		"colorof",
		"colspan",
		"contentinfo",
		"contrib",
		"css",
		"datetime",
		"dd",
		"dfn",
		"end{document",
		"end{singlespace",
		"end{tightcenter",
		"errormessage",
		"es5",
		"es6",
		"eslint",
		"facebook",
		"fallsback",
		"figcaption",
		"github",
		"glossref",
		"google",
		"gridcell",
		"h1",
		"h2",
		"h3",
		"h4",
		"h5",
		"h6",
		"hacky",
		"href",
		"i18n",
		"iframe",
		"img",
		"indices",
		"js",
		"li",
		"menuitem",
		"menuitemcheckbox",
		"menuitemradio",
		"noteref",
		"optgroup",
		"org",
		"pagebreak",
		"pagelist",
		"param",
		"popup",
		"posinset",
		"qna",
		"radiogroup",
		"refactored",
		"roledescription",
		"rowcount",
		"rowheader",
		"rowindex",
		"rowspan",
		"scss",
		"sectionhead",
		"setsize",
		"sourcemaped",
		"sourcemapped",
		"src",
		"stringify",
		"subsectionof",
		"supertest",
		"tabpanel",
		"td",
		"toc",
		"treegrid",
		"treeitem",
		"unicode",
		"valuemax",
		"valuemin",
		"valuenow",
		"valuetext",
		"wai"
	],
	"line_padding_bottom": 1,
	"line_padding_top": 1,
	"rulers":
	[
		80,
		120
	],
	"scroll_past_end": true,
	"show_definitions": false,
	"show_full_path": true,
	"show_legacy_color_schemes": true,
	"spell_check": true,
	"tab_size": 2,
	"theme": "Default.sublime-theme",
	"translate_tabs_to_spaces": true,
	"trim_trailing_white_space_on_save": true,
	"word_wrap": true
}

Fix brew doctor output

Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
  /usr/local/

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
  git-receive-pack
  git-upload-archive
  git-cvsserver
  git-shell
  git-upload-pack
  git

Consider setting your PATH so that /usr/local/bin

Update iterm2 colors

Uses JSON profile now

{
  "Link Color" : {
    "Red Component" : 0,
    "Color Space" : "sRGB",
    "Blue Component" : 0.73423302173614502,
    "Alpha Component" : 1,
    "Green Component" : 0.35916060209274292
  },
  "Tags" : [

  ],
  "Ansi 12 Color" : {
    "Red Component" : 0.51372549019607838,
    "Color Space" : "sRGB",
    "Blue Component" : 0.58823529411764708,
    "Green Component" : 0.58039215686274515
  },
  "Ansi 7 Color" : {
    "Red Component" : 0.93333333333333335,
    "Color Space" : "sRGB",
    "Blue Component" : 0.83529411764705885,
    "Green Component" : 0.90980392156862744
  },
  "Ansi 8 Color" : {
    "Red Component" : 0.5,
    "Color Space" : "sRGB",
    "Blue Component" : 0.5,
    "Alpha Component" : 1,
    "Green Component" : 0.5
  },
  "Bold Color" : {
    "Red Component" : 0.57647058823529407,
    "Color Space" : "sRGB",
    "Blue Component" : 0.63137254901960782,
    "Green Component" : 0.63137254901960782
  },
  "Ansi 9 Color" : {
    "Red Component" : 0.79607843137254897,
    "Color Space" : "sRGB",
    "Blue Component" : 0.086274509803921567,
    "Green Component" : 0.29411764705882354
  },
  "Ansi 0 Color" : {
    "Red Component" : 0,
    "Color Space" : "sRGB",
    "Blue Component" : 0.21176470588235294,
    "Alpha Component" : 1,
    "Green Component" : 0.16862745098039217
  },
  "Horizontal Spacing" : 1,
  "Rows" : 25,
  "Default Bookmark" : "No",
  "Cursor Guide Color" : {
    "Red Component" : 0.70213186740875244,
    "Color Space" : "sRGB",
    "Blue Component" : 1,
    "Alpha Component" : 0.25,
    "Green Component" : 0.9268307089805603
  },
  "Non-ASCII Anti Aliased" : true,
  "Use Bright Bold" : true,
  "Ansi 10 Color" : {
    "Red Component" : 0.34509803921568627,
    "Color Space" : "sRGB",
    "Blue Component" : 0.45882352941176469,
    "Green Component" : 0.43137254901960786
  },
  "Ambiguous Double Width" : false,
  "Jobs to Ignore" : [
    "rlogin",
    "ssh",
    "slogin",
    "telnet"
  ],
  "Ansi 15 Color" : {
    "Red Component" : 0.99215686274509807,
    "Color Space" : "sRGB",
    "Blue Component" : 0.8901960784313725,
    "Green Component" : 0.96470588235294119
  },
  "Foreground Color" : {
    "Red Component" : 0.51372549019607838,
    "Color Space" : "sRGB",
    "Blue Component" : 0.58823529411764708,
    "Green Component" : 0.58039215686274515
  },
  "Working Directory" : "\/Users\/straker",
  "Blinking Cursor" : false,
  "Disable Window Resizing" : true,
  "Sync Title" : false,
  "Prompt Before Closing 2" : false,
  "BM Growl" : true,
  "Command" : "",
  "Description" : "Default",
  "Mouse Reporting" : true,
  "Screen" : -1,
  "Selection Color" : {
    "Red Component" : 0.027450980392156862,
    "Color Space" : "sRGB",
    "Blue Component" : 0.25882352941176473,
    "Green Component" : 0.21176470588235294
  },
  "Columns" : 80,
  "Idle Code" : 0,
  "Ansi 13 Color" : {
    "Red Component" : 0.42352941176470588,
    "Color Space" : "sRGB",
    "Blue Component" : 0.7686274509803922,
    "Green Component" : 0.44313725490196076
  },
  "Custom Command" : "No",
  "ASCII Anti Aliased" : true,
  "Non Ascii Font" : "Monaco 12",
  "Vertical Spacing" : 1,
  "Use Bold Font" : true,
  "Option Key Sends" : 0,
  "Selected Text Color" : {
    "Red Component" : 0.57647058823529407,
    "Color Space" : "sRGB",
    "Blue Component" : 0.63137254901960782,
    "Green Component" : 0.63137254901960782
  },
  "Background Color" : {
    "Red Component" : 0,
    "Color Space" : "sRGB",
    "Blue Component" : 0.21176470588235294,
    "Green Component" : 0.16862745098039217
  },
  "Character Encoding" : 4,
  "Ansi 11 Color" : {
    "Red Component" : 0.396078431372549,
    "Color Space" : "sRGB",
    "Blue Component" : 0.51372549019607838,
    "Green Component" : 0.4823529411764706
  },
  "Use Italic Font" : true,
  "Unlimited Scrollback" : true,
  "Keyboard Map" : {
    "0xf700-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6A"
    },
    "0x37-0x40000" : {
      "Action" : 11,
      "Text" : "0x1f"
    },
    "0x32-0x40000" : {
      "Action" : 11,
      "Text" : "0x00"
    },
    "0xf709-0x20000" : {
      "Action" : 10,
      "Text" : "[17;2~"
    },
    "0xf70c-0x20000" : {
      "Action" : 10,
      "Text" : "[20;2~"
    },
    "0xf729-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2H"
    },
    "0xf72b-0x40000" : {
      "Action" : 10,
      "Text" : "[1;5F"
    },
    "0xf705-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2Q"
    },
    "0xf703-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6C"
    },
    "0xf700-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2A"
    },
    "0xf701-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x42"
    },
    "0x38-0x40000" : {
      "Action" : 11,
      "Text" : "0x7f"
    },
    "0x33-0x40000" : {
      "Action" : 11,
      "Text" : "0x1b"
    },
    "0xf703-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2C"
    },
    "0xf701-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5B"
    },
    "0xf70d-0x20000" : {
      "Action" : 10,
      "Text" : "[21;2~"
    },
    "0xf702-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6D"
    },
    "0xf729-0x40000" : {
      "Action" : 10,
      "Text" : "[1;5H"
    },
    "0xf706-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2R"
    },
    "0x34-0x40000" : {
      "Action" : 11,
      "Text" : "0x1c"
    },
    "0xf700-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x41"
    },
    "0x2d-0x40000" : {
      "Action" : 11,
      "Text" : "0x1f"
    },
    "0xf70e-0x20000" : {
      "Action" : 10,
      "Text" : "[23;2~"
    },
    "0xf702-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2D"
    },
    "0xf703-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x43"
    },
    "0xf700-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5A"
    },
    "0xf707-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2S"
    },
    "0xf70a-0x20000" : {
      "Action" : 10,
      "Text" : "[18;2~"
    },
    "0x35-0x40000" : {
      "Action" : 11,
      "Text" : "0x1d"
    },
    "0xf70f-0x20000" : {
      "Action" : 10,
      "Text" : "[24;2~"
    },
    "0xf703-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5C"
    },
    "0xf701-0x260000" : {
      "Action" : 10,
      "Text" : "[1;6B"
    },
    "0xf702-0x280000" : {
      "Action" : 11,
      "Text" : "0x1b 0x1b 0x5b 0x44"
    },
    "0xf72b-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2F"
    },
    "0x36-0x40000" : {
      "Action" : 11,
      "Text" : "0x1e"
    },
    "0xf708-0x20000" : {
      "Action" : 10,
      "Text" : "[15;2~"
    },
    "0xf701-0x220000" : {
      "Action" : 10,
      "Text" : "[1;2B"
    },
    "0xf70b-0x20000" : {
      "Action" : 10,
      "Text" : "[19;2~"
    },
    "0xf702-0x240000" : {
      "Action" : 10,
      "Text" : "[1;5D"
    },
    "0xf704-0x20000" : {
      "Action" : 10,
      "Text" : "[1;2P"
    }
  },
  "Window Type" : 0,
  "Cursor Boost" : 0,
  "Background Image Location" : "",
  "Blur" : false,
  "Badge Color" : {
    "Red Component" : 1,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Alpha Component" : 0.5,
    "Green Component" : 0.1491314172744751
  },
  "Scrollback Lines" : 0,
  "Send Code When Idle" : false,
  "Close Sessions On End" : true,
  "Terminal Type" : "xterm-256color",
  "Visual Bell" : true,
  "Flashing Bell" : false,
  "Silence Bell" : false,
  "Ansi 14 Color" : {
    "Red Component" : 0.57647058823529407,
    "Color Space" : "sRGB",
    "Blue Component" : 0.63137254901960782,
    "Green Component" : 0.63137254901960782
  },
  "Name" : "Default",
  "Cursor Text Color" : {
    "Red Component" : 0.027450980392156862,
    "Color Space" : "sRGB",
    "Blue Component" : 0.25882352941176473,
    "Green Component" : 0.21176470588235294
  },
  "Minimum Contrast" : 0.35329284667968752,
  "Shortcut" : "",
  "Cursor Color" : {
    "Red Component" : 0.51372549019607838,
    "Color Space" : "sRGB",
    "Blue Component" : 0.58823529411764708,
    "Green Component" : 0.58039215686274515
  },
  "Transparency" : 0,
  "Ansi 1 Color" : {
    "Red Component" : 0.86274509803921573,
    "Color Space" : "sRGB",
    "Blue Component" : 0.18431372549019609,
    "Green Component" : 0.19607843137254902
  },
  "Ansi 2 Color" : {
    "Red Component" : 0.52156862745098043,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Green Component" : 0.59999999999999998
  },
  "Ansi 3 Color" : {
    "Red Component" : 0.70980392156862748,
    "Color Space" : "sRGB",
    "Blue Component" : 0,
    "Green Component" : 0.53725490196078429
  },
  "Custom Directory" : "Recycle",
  "Right Option Key Sends" : 0,
  "Use Non-ASCII Font" : false,
  "Ansi 6 Color" : {
    "Red Component" : 0.16470588235294117,
    "Color Space" : "sRGB",
    "Blue Component" : 0.59607843137254901,
    "Green Component" : 0.63137254901960782
  },
  "Normal Font" : "Monaco 12",
  "Guid" : "2EFC7153-78E5-4398-803B-396E9F9386FC",
  "Ansi 4 Color" : {
    "Red Component" : 0.14901960784313725,
    "Color Space" : "sRGB",
    "Blue Component" : 0.82352941176470584,
    "Green Component" : 0.54509803921568623
  },
  "Ansi 5 Color" : {
    "Red Component" : 0.82745098039215681,
    "Color Space" : "sRGB",
    "Blue Component" : 0.50980392156862742,
    "Green Component" : 0.21176470588235294
  }
}

Brew install "next step" not working

On new MacBook M2 Pro, running the suggested "next steps" of the brew install fails as .zprofile does not exist.

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/stevenlambert/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

./install/brew.sh: line 17: /Users/straker/.zprofile: No such file or directory
./install/brew.sh: line 18: /Users/straker/.zprofile: No such file or directory

Another issue is that my new mac is not the user straker so the user directory doesn't exist. Should figure out what user is instead of hard coding path (use whoami command).

Update brew install

Current path gives error:

Error: The Ruby Homebrew installer is now disabled and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After install, outputs this:

==> Next steps:

  • Run these three commands in your terminal to add Homebrew to your PATH:
    echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/straker/.zprofile
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/straker/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  • Run brew help to get started
  • Further documentation:
    https://docs.brew.sh

New steps:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/straker/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/straker/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Configure git

Copy home dir .gitattributes, .gitconfig, and .gitignore

Update brew cask install

Error: caskroom/cask was moved. Tap homebrew/cask instead.

After install

Error: brew cask is no longer a brew command. Use brew <command> --cask instead.

New steps

brew tap homebrew/cask     
brew install --cask "apps"

Add NVM to .zprofile

Sublime console doesn't load the .zshrc file, but will load the .zprofile file. This is needed to run linting and prettier in sublime. See https://github.com/SublimeLinter/ SublimeLinter/issues/128#issuecomment-268929866.

(Don't remove NVM from .zshrc as there terminal doesn't run the .zprofile)

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.