Coder Social home page Coder Social logo

dotfiles's Introduction

dotfiles

Dotfiles for command line stuff.

run setup

In this folder you will want to run:

./setup.sh FLAVOR

Where FLAVOR is a name unique to the environment / computer you are setting up.

You probably need the Xcode command line tools installed, which you can do with:

xcode-select --install

applications

Not all are needed.

Many of these are installed through Homebrew, which you can install here.

AWS Vault - aws-vault

Used to store AWS credentials in macOS Keychain, instead of plaintext.

brew install --cask aws-vault

NodeJS version manager - nvm

You need the Xcode command line tools installed first!

Install instructions on the Github page.

# install a version of nodejs
nvm install VERSION
# set a version as the default
nvm alias default VERSION

Ruby version manager - rbenv

# install
brew install rbenv ruby-build
# install a ruby version
rbenv install VERSION

Terraform version manager - tfenv

# install
brew install tfenv
# install a version of terraform
tfenv install VERSION

launch on login

To launch commands when logging in, you can do this:

Create a text file containing your commands (bash script):

#!/bin/bash

# Start the MongoDB server
/Applications/MongoDB/bin/mongod --dbpath /usr/local/mongo/data --fork --logpath /usr/local/mongo/log

Save this file in ~/Library/Startup.cmd
You can test it by double-clicking the file in the Finder
Make it executable: chmod +x ~/Library/Startup.cmd
Add this file in System Preferences > Accounts > Login items

note that the file can be anywhere, doesn't have to end with .cmd either. just chmod +x it

Start Automator.app;
Select "Application";
Click "Show library" in the toolbar (if hidden);
Add "Run shell script" (from the Actions/Utilities);
Copy-and-paste your script into the window;
Test it;
Save it somewhere: a file called your_name.app will be created);
Depending your MacOSX version:
    Old versions: Go to System Preferences → Accounts → Login items, or
    New version: Go to System Preferences → Users and Groups → Login items (top right);
Add this newly-created app;

Log off, log back in, and you should be done. ;)

dotfiles's People

Contributors

saibotsivad avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

renddslow

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.