diff --git a/Brewfile b/Brewfile new file mode 100644 index 00000000000..aabf1d69cbe --- /dev/null +++ b/Brewfile @@ -0,0 +1,50 @@ +cask_args appdir: '/Applications' + +tap 'homebrew/bundle' + +brew 'yarn' +cask 'visual-studio-code' +cask 'iterm2' +cask 'github' # Github Desktop +brew 'gh' # Github Command Line +brew 'coreutils' +cask 'docker' +brew 'go' +brew 'jq' +brew 'wget' +brew 'ack' +cask 'google-cloud-sdk' +brew 'caddy' +cask 'keka' # File archiver for formats such as .rar, .7z +brew 'direnv' # TODO: Remove once not used in legacy + +# Under consideration +# brew 'openssl' + +# Usually Installed +# cask 'google-chrome' + +# Personal +# brew 'youtube-dl' # Only really for personal +# cask 'caffeine' # Only really for personal +# cask 'dbvisualizer' # Use more up to date database viz +# cask 'transmission' +# cask 'plex-media-player' +# cask 'plex-media-server' +# cask 'brave-browser' +# cask 'burp-suite' +# cask 'handbrake' + +# Ruby +# brew 'ruby-build' +# brew 'rbenv' +# cask 'dbvisualizer' + +# Legacy +# cask 'licecap' # Replaced by Giphy Capture +# cask 'caffeine' +# cask 'postman' +# cask 'postman' # there is an app now +# cask 'protonvpn' # not the VPN I use +# cask 'spectacle' # no longer maintained +# brew 'imagemagick' diff --git a/Brewfile.lock.json b/Brewfile.lock.json new file mode 100644 index 00000000000..9cc21af14df --- /dev/null +++ b/Brewfile.lock.json @@ -0,0 +1,380 @@ +{ + "entries": { + "tap": { + "homebrew/bundle": { + "revision": "4b703e446be1d848521b0bdf3e85f36bb3aae1f9" + } + }, + "brew": { + "ack": { + "version": "3.5.0", + "bottle": { + "rebuild": 1, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "all": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/ack/blobs/sha256:26e3c497d9583d7d8b8bfe60f75b3485bc7f07f0e1ea86ad5b338f58bd88a930", + "sha256": "26e3c497d9583d7d8b8bfe60f75b3485bc7f07f0e1ea86ad5b338f58bd88a930" + } + } + } + }, + "caddy": { + "version": "2.4.6", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/caddy/blobs/sha256:e53efacd4bd5640c41166283fbfbaff87b9253924b0826cc575ead49dac47b1c", + "sha256": "e53efacd4bd5640c41166283fbfbaff87b9253924b0826cc575ead49dac47b1c" + }, + "arm64_big_sur": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/caddy/blobs/sha256:e53efacd4bd5640c41166283fbfbaff87b9253924b0826cc575ead49dac47b1c", + "sha256": "e53efacd4bd5640c41166283fbfbaff87b9253924b0826cc575ead49dac47b1c" + }, + "monterey": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/caddy/blobs/sha256:bd13b5a98eaa76fe757a8a14b2dfccc76eb93eaa736a98398e8e35d7620cd4a5", + "sha256": "bd13b5a98eaa76fe757a8a14b2dfccc76eb93eaa736a98398e8e35d7620cd4a5" + }, + "big_sur": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/caddy/blobs/sha256:bd13b5a98eaa76fe757a8a14b2dfccc76eb93eaa736a98398e8e35d7620cd4a5", + "sha256": "bd13b5a98eaa76fe757a8a14b2dfccc76eb93eaa736a98398e8e35d7620cd4a5" + }, + "catalina": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/caddy/blobs/sha256:bd13b5a98eaa76fe757a8a14b2dfccc76eb93eaa736a98398e8e35d7620cd4a5", + "sha256": "bd13b5a98eaa76fe757a8a14b2dfccc76eb93eaa736a98398e8e35d7620cd4a5" + }, + "x86_64_linux": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/caddy/blobs/sha256:f9d44625b45d2476bd1f8c049c30dac3bfc4732e7e00b88f0821d7b351995ace", + "sha256": "f9d44625b45d2476bd1f8c049c30dac3bfc4732e7e00b88f0821d7b351995ace" + } + } + } + }, + "coreutils": { + "version": "9.0", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": "/opt/homebrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:9a72c1fef593eef2757398be776c656885def021d5e276be11ab26174bfe5d91", + "sha256": "9a72c1fef593eef2757398be776c656885def021d5e276be11ab26174bfe5d91" + }, + "arm64_big_sur": { + "cellar": "/opt/homebrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:875e9ec351a0624e65d19e742a7271fc409ce912fa4a4ad9147ab21eaa126bad", + "sha256": "875e9ec351a0624e65d19e742a7271fc409ce912fa4a4ad9147ab21eaa126bad" + }, + "monterey": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:e59c6a7cd6993b3d61dfa133b4091f731220d10ed7c23f8808870a22bc3ad8a7", + "sha256": "e59c6a7cd6993b3d61dfa133b4091f731220d10ed7c23f8808870a22bc3ad8a7" + }, + "big_sur": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:6c6b84b32d923e26b1c67e8c9aee801f7ab2f0b9f94d9b455b784eb3a2dc575c", + "sha256": "6c6b84b32d923e26b1c67e8c9aee801f7ab2f0b9f94d9b455b784eb3a2dc575c" + }, + "catalina": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:9b24df176ef9ec342e83af6880c27e0235e4fcc436d0143fb37eb24695de51a6", + "sha256": "9b24df176ef9ec342e83af6880c27e0235e4fcc436d0143fb37eb24695de51a6" + }, + "mojave": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:6755e3bb94c35dae4ebbd525633691bc5ff1dc82a84f5b968b952d7be86652d7", + "sha256": "6755e3bb94c35dae4ebbd525633691bc5ff1dc82a84f5b968b952d7be86652d7" + }, + "x86_64_linux": { + "cellar": "/home/linuxbrew/.linuxbrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/coreutils/blobs/sha256:6ab4d61127fac0e193a82881b9262e3121ada87566f470abdf6a2b9c63ab6768", + "sha256": "6ab4d61127fac0e193a82881b9262e3121ada87566f470abdf6a2b9c63ab6768" + } + } + } + }, + "iterm2": { + }, + "direnv": { + "version": "2.30.3", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:0a2bf97696f0e57e713db8f39dcff719fa17e0512b6ad14a7657a1c946943a85", + "sha256": "0a2bf97696f0e57e713db8f39dcff719fa17e0512b6ad14a7657a1c946943a85" + }, + "arm64_big_sur": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:41d4f105cdef28417dae6c248a5819709967897071c34ed63fa5432644d944f2", + "sha256": "41d4f105cdef28417dae6c248a5819709967897071c34ed63fa5432644d944f2" + }, + "monterey": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:761499a99dc029d5cafe075105827c4897d5e45dd53cfa7bf86ea51fc4f1afaf", + "sha256": "761499a99dc029d5cafe075105827c4897d5e45dd53cfa7bf86ea51fc4f1afaf" + }, + "big_sur": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:73fc3e19b391c97806c44d2f2b38b5ddc28742d656ab6ca013371acc6cabd5bc", + "sha256": "73fc3e19b391c97806c44d2f2b38b5ddc28742d656ab6ca013371acc6cabd5bc" + }, + "catalina": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:77c87b8f6ee51b65514b5688babcd83117b75feb2b40b0489bd0649cdeb3f3cb", + "sha256": "77c87b8f6ee51b65514b5688babcd83117b75feb2b40b0489bd0649cdeb3f3cb" + }, + "x86_64_linux": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:b18ff46bf3e0b18eace8b2a0754829555a991d58d6fe3f76681a8a057c48a04c", + "sha256": "b18ff46bf3e0b18eace8b2a0754829555a991d58d6fe3f76681a8a057c48a04c" + } + } + } + }, + "gh": { + "version": "2.4.0", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/gh/blobs/sha256:ead2616a7f6c81fce4b5f2843ce1bfce61de3b4466fde0dbf8ad8a3527cbe8bb", + "sha256": "ead2616a7f6c81fce4b5f2843ce1bfce61de3b4466fde0dbf8ad8a3527cbe8bb" + }, + "arm64_big_sur": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/gh/blobs/sha256:8b62ea0af0ebbc009c9bf3bcfcf9434fa6d17a98f314c39100966a66427a3c57", + "sha256": "8b62ea0af0ebbc009c9bf3bcfcf9434fa6d17a98f314c39100966a66427a3c57" + }, + "monterey": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/gh/blobs/sha256:b2b6603551177ff4b883336270978090c02ba4013e5a94a266b112c84d0a1a4d", + "sha256": "b2b6603551177ff4b883336270978090c02ba4013e5a94a266b112c84d0a1a4d" + }, + "big_sur": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/gh/blobs/sha256:13ef7de23ba81f1d294788733a8251bb3ac426c88b94521def2e4ac3a7270fd0", + "sha256": "13ef7de23ba81f1d294788733a8251bb3ac426c88b94521def2e4ac3a7270fd0" + }, + "catalina": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/gh/blobs/sha256:aac581496ca2ee409eacf1fa7885a77d55bfea561c0b16461df2a15043230752", + "sha256": "aac581496ca2ee409eacf1fa7885a77d55bfea561c0b16461df2a15043230752" + }, + "x86_64_linux": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/gh/blobs/sha256:20ed58e116befccc87e1f6d4af40633bfe44c7db00cce507b71dc0905b08aae8", + "sha256": "20ed58e116befccc87e1f6d4af40633bfe44c7db00cce507b71dc0905b08aae8" + } + } + } + }, + "go": { + "version": "1.17.6", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": "/opt/homebrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:b7397f2bb5f35e87677581fab0441698614ed74d2faf10fc9d82a157945cd4b6", + "sha256": "b7397f2bb5f35e87677581fab0441698614ed74d2faf10fc9d82a157945cd4b6" + }, + "arm64_big_sur": { + "cellar": "/opt/homebrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:498f7212b386b369965b101a795320eed1f6327d8b51a4e5d6158c4b527c2df1", + "sha256": "498f7212b386b369965b101a795320eed1f6327d8b51a4e5d6158c4b527c2df1" + }, + "monterey": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:c81555a115fbd99ab1c74e9b3e1d056864c31a4274803381230984f4a70fdf63", + "sha256": "c81555a115fbd99ab1c74e9b3e1d056864c31a4274803381230984f4a70fdf63" + }, + "big_sur": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:ee3c6b380b93482e56620f7962bde13c2492131b15cdd37ce925dc1d6db9efcf", + "sha256": "ee3c6b380b93482e56620f7962bde13c2492131b15cdd37ce925dc1d6db9efcf" + }, + "catalina": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:f7a522d413b3b5fc47305a3851e0148a63b2786f22796399feb6788af92adb14", + "sha256": "f7a522d413b3b5fc47305a3851e0148a63b2786f22796399feb6788af92adb14" + }, + "x86_64_linux": { + "cellar": "/home/linuxbrew/.linuxbrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/go/blobs/sha256:4b4c9d51934b2c75fa32dcfb239363673a2bb471388f53976a98151489e00209", + "sha256": "4b4c9d51934b2c75fa32dcfb239363673a2bb471388f53976a98151489e00209" + } + } + } + }, + "jq": { + "version": "1.6", + "bottle": { + "rebuild": 1, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:f70e1ae8df182b242ca004492cc0a664e2a8195e2e46f30546fe78e265d5eb87", + "sha256": "f70e1ae8df182b242ca004492cc0a664e2a8195e2e46f30546fe78e265d5eb87" + }, + "arm64_big_sur": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:674b3ae41c399f1e8e44c271b0e6909babff9fcd2e04a2127d25e2407ea4dd33", + "sha256": "674b3ae41c399f1e8e44c271b0e6909babff9fcd2e04a2127d25e2407ea4dd33" + }, + "monterey": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:7fee6ea327062b37d34ef5346a84810a1752cc7146fff1223fab76c9b45686e0", + "sha256": "7fee6ea327062b37d34ef5346a84810a1752cc7146fff1223fab76c9b45686e0" + }, + "big_sur": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:bf0f8577632af7b878b6425476f5b1ab9c3bf66d65affb0c455048a173a0b6bf", + "sha256": "bf0f8577632af7b878b6425476f5b1ab9c3bf66d65affb0c455048a173a0b6bf" + }, + "catalina": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:820a3c85fcbb63088b160c7edf125d7e55fc2c5c1d51569304499c9cc4b89ce8", + "sha256": "820a3c85fcbb63088b160c7edf125d7e55fc2c5c1d51569304499c9cc4b89ce8" + }, + "mojave": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:71f0e76c5b22e5088426c971d5e795fe67abee7af6c2c4ae0cf4c0eb98ed21ff", + "sha256": "71f0e76c5b22e5088426c971d5e795fe67abee7af6c2c4ae0cf4c0eb98ed21ff" + }, + "high_sierra": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:dffcffa4ea13e8f0f2b45c5121e529077e135ae9a47254c32182231662ee9b72", + "sha256": "dffcffa4ea13e8f0f2b45c5121e529077e135ae9a47254c32182231662ee9b72" + }, + "sierra": { + "cellar": ":any", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:bb4d19dc026c2d72c53eed78eaa0ab982e9fcad2cd2acc6d13e7a12ff658e877", + "sha256": "bb4d19dc026c2d72c53eed78eaa0ab982e9fcad2cd2acc6d13e7a12ff658e877" + }, + "x86_64_linux": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/jq/blobs/sha256:2beea2c2c372ccf1081e9a5233fc3020470803254284aeecc071249d76b62338", + "sha256": "2beea2c2c372ccf1081e9a5233fc3020470803254284aeecc071249d76b62338" + } + } + } + }, + "wget": { + "version": "1.21.2", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "arm64_monterey": { + "cellar": "/opt/homebrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:571ef7b59ebab2aa947485aa33bf612d001d51f5bbc89b59d00ac39712b846c8", + "sha256": "571ef7b59ebab2aa947485aa33bf612d001d51f5bbc89b59d00ac39712b846c8" + }, + "arm64_big_sur": { + "cellar": "/opt/homebrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:4f8b66c5f181f01064522a80bfda72eabddd47299a8b88bc7d0022c457e72594", + "sha256": "4f8b66c5f181f01064522a80bfda72eabddd47299a8b88bc7d0022c457e72594" + }, + "monterey": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:b6d6f422e3c4db0607caf5fc91dba4fb19b3c52883d7a012c9fc11b872b14bad", + "sha256": "b6d6f422e3c4db0607caf5fc91dba4fb19b3c52883d7a012c9fc11b872b14bad" + }, + "big_sur": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:7a8e6512e0890076b9ebc4f8db6165d70b4bd05e04dfc0491519ba3c91a5c21e", + "sha256": "7a8e6512e0890076b9ebc4f8db6165d70b4bd05e04dfc0491519ba3c91a5c21e" + }, + "catalina": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:3b191bb28b5011e7a105ae76427f6dd21a1e12c33da2273b7e01ef2110f0f375", + "sha256": "3b191bb28b5011e7a105ae76427f6dd21a1e12c33da2273b7e01ef2110f0f375" + }, + "mojave": { + "cellar": "/usr/local/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:e0d4b68c9e5abeaa6395241c43307c4bbd26133cd63d136321974535788c37e9", + "sha256": "e0d4b68c9e5abeaa6395241c43307c4bbd26133cd63d136321974535788c37e9" + }, + "x86_64_linux": { + "cellar": "/home/linuxbrew/.linuxbrew/Cellar", + "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:1c102dc1129e508f7788824ea6ef4db4656fbab2a6a4b54419689925a5ed6855", + "sha256": "1c102dc1129e508f7788824ea6ef4db4656fbab2a6a4b54419689925a5ed6855" + } + } + } + }, + "yarn": { + "version": "1.22.17_2", + "bottle": { + "rebuild": 0, + "root_url": "https://ghcr.io/v2/homebrew/core", + "files": { + "all": { + "cellar": ":any_skip_relocation", + "url": "https://ghcr.io/v2/homebrew/core/yarn/blobs/sha256:28016c8b31dfd51b542168bf0c0165cc7a5e50f0b4034a6cc6628e03f2c01121", + "sha256": "28016c8b31dfd51b542168bf0c0165cc7a5e50f0b4034a6cc6628e03f2c01121" + } + } + } + } + }, + "cask": { + "docker": { + "version": "4.4.2,73305", + "options": { + "full_name": "docker", + "args": { + "appdir": "/Applications" + } + } + }, + "google-cloud-sdk": { + "version": "latest", + "options": { + "full_name": "google-cloud-sdk", + "args": { + "appdir": "/Applications" + } + } + }, + "keka": { + "version": "1.2.52", + "options": { + "full_name": "keka", + "args": { + "appdir": "/Applications" + } + } + } + } + }, + "system": { + "macos": { + "monterey": { + "HOMEBREW_VERSION": "3.3.12", + "HOMEBREW_PREFIX": "/opt/homebrew", + "Homebrew/homebrew-core": "d64a7fe072a9ee7cde932495d7d8bd024d13aa44", + "CLT": "13.2.0.0.1.1638488800", + "Xcode": "13.1", + "macOS": "12.2" + } + } + } +} diff --git a/bin/atom-package-install b/bin/atom-package-install deleted file mode 100755 index 218bf414ee1..00000000000 --- a/bin/atom-package-install +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# Usage: atom-package-install -# -# Installs the atom packages listed in your packages.txt file -# located at ~/.dotfiles/atom.symlink/packages.txt -# -# You can generate a new list based on currently installed -# packages via atom-package-backup - -set -e - -apm install --packages-file ~/.dotfiles/atom.symlink/packages.txt diff --git a/direnv/setup.zsh b/direnv/setup.zsh new file mode 100644 index 00000000000..14e9325b385 --- /dev/null +++ b/direnv/setup.zsh @@ -0,0 +1 @@ +eval "$(direnv hook zsh)" \ No newline at end of file diff --git a/node/install.sh b/node/install.sh index 03c92217043..3345fbedccc 100755 --- a/node/install.sh +++ b/node/install.sh @@ -1,7 +1,33 @@ +#!/bin/sh + +# Install NVM and then Node +if [ ! -d "$NVM_DIR" ]; then + # Install manually: https://github.com/creationix/nvm#manual-install + echo "› Installing nvm (Node Version Manager)" + + export NVM_DIR="$HOME/.nvm" && ( + git clone https://github.com/creationix/nvm.git "$NVM_DIR" + cd "$NVM_DIR" + git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` + ) && \. "$NVM_DIR/nvm.sh" + + echo " Installing latest Node LTS as default" + nvm install --lts +else + echo "› Upgrading NVM (Node Version Manager)" + # Upgrade manually: https://github.com/creationix/nvm#manual-upgrade + ( + cd "$NVM_DIR" + git fetch --tags origin + git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` + ) && \. "$NVM_DIR/nvm.sh" +fi + +# https://www.npmjs.com/package/spoof if test ! $(which spoof) then if test $(which npm) then sudo npm install spoof -g fi -fi +fi \ No newline at end of file diff --git a/node/path.zsh b/node/path.zsh new file mode 100644 index 00000000000..9baa99bf803 --- /dev/null +++ b/node/path.zsh @@ -0,0 +1,6 @@ +# For NVM which is needed to set Node path +# https://github.com/creationix/nvm + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion \ No newline at end of file diff --git a/oh-my-zsh/config.zsh b/oh-my-zsh/config.zsh new file mode 100644 index 00000000000..b6027103ba8 --- /dev/null +++ b/oh-my-zsh/config.zsh @@ -0,0 +1 @@ +ZSH_THEME="AGNOSTER" \ No newline at end of file diff --git a/oh-my-zsh/install.sh b/oh-my-zsh/install.sh new file mode 100755 index 00000000000..772fbb70fd5 --- /dev/null +++ b/oh-my-zsh/install.sh @@ -0,0 +1 @@ +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \ No newline at end of file diff --git a/ruby/aliases.zsh b/ruby/aliases.zsh deleted file mode 100644 index 607599fcbd2..00000000000 --- a/ruby/aliases.zsh +++ /dev/null @@ -1,3 +0,0 @@ -alias sc='script/console' -alias sg='script/generate' -alias sd='script/destroy' diff --git a/ruby/completion.zsh b/ruby/completion.zsh deleted file mode 100644 index 87bdc54ad78..00000000000 --- a/ruby/completion.zsh +++ /dev/null @@ -1,22 +0,0 @@ -# Stolen from -# https://github.com/sstephenson/rbenv/blob/master/completions/rbenv.zsh - -if [[ ! -o interactive ]]; then - return -fi - -compctl -K _rbenv rbenv - -_rbenv() { - local word words completions - read -cA words - word="${words[2]}" - - if [ "${#words}" -eq 2 ]; then - completions="$(rbenv commands)" - else - completions="$(rbenv completions "${word}")" - fi - - reply=("${(ps:\n:)completions}") -} \ No newline at end of file diff --git a/ruby/gemrc.symlink b/ruby/gemrc.symlink deleted file mode 100644 index 63e8ac20eba..00000000000 --- a/ruby/gemrc.symlink +++ /dev/null @@ -1,6 +0,0 @@ ---- -:update_sources: true -:verbose: true -:backtrace: false -:benchmark: false -gem: --no-document diff --git a/ruby/irbrc.symlink b/ruby/irbrc.symlink deleted file mode 100644 index f25dcbfb023..00000000000 --- a/ruby/irbrc.symlink +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/ruby -require 'irb/completion' -require 'irb/ext/save-history' -require 'rubygems' - -IRB.conf[:SAVE_HISTORY] = 1000 -IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history" - -IRB.conf[:PROMPT_MODE] = :SIMPLE - -IRB.conf[:AUTO_INDENT] = true - -class Object - # list methods which aren't in superclass - def local_methods(obj = self) - (obj.methods - obj.class.superclass.instance_methods).sort - end - - # print documentation - # - # ri 'Array#pop' - # Array.ri - # Array.ri :pop - # arr.ri :pop - def ri(method = nil) - unless method && method =~ /^[A-Z]/ # if class isn't specified - klass = self.kind_of?(Class) ? name : self.class.name - method = [klass, method].compact.join('#') - end - puts `ri '#{method}'` - end -end - -# Copies the result of the last operation you ran in IRB to the system -# clipboard (if you're on macOS). -def cop - last_value = IRB.CurrentContext.last_value - %x[echo '#{last_value}' | pbcopy] - "copied \`#{last_value}' to your clipboard" -end - -def me - User.find_by_login(ENV['USER'].strip) -end - -def r - reload! -end diff --git a/ruby/rbenv.zsh b/ruby/rbenv.zsh deleted file mode 100644 index cb93d589d6a..00000000000 --- a/ruby/rbenv.zsh +++ /dev/null @@ -1,5 +0,0 @@ -# init according to man page -if (( $+commands[rbenv] )) -then - eval "$(rbenv init -)" -fi diff --git a/script/install b/script/install index 1887fc2ca49..d0dd93d3bf9 100755 --- a/script/install +++ b/script/install @@ -6,5 +6,11 @@ set -e cd "$(dirname $0)"/.. +# Run Homebrew through the Brewfile +echo "› brew bundle" +brew bundle + +echo "› Running installers" + # find the installers and run them iteratively find . -name install.sh | while read installer ; do sh -c "${installer}" ; done diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink deleted file mode 100644 index 0463e21b902..00000000000 --- a/vim/vimrc.symlink +++ /dev/null @@ -1,4 +0,0 @@ -syntax on - -" Wrap gitcommit file types at the appropriate length -filetype indent plugin on