dotfiles

@neogeek's dotfiles

MIT License

Stars
4

dotfiles

@neogeek's dotfiles

Installation

You can store this repo in any directory you choose (I keep it with the rest of my git related projects in ~/git/github/). Running the following command will pull the latest version of the dotfiles repo into a new folder and add a line to your ~/.bash_profile.

$ git clone https://github.com/neogeek/dotfiles.git && cd dotfiles && source bootstrap.sh

Updating

You can update the dotfiles at any time using the following command. It will pull any new updates from the repo and update the line in ~/.bash_profile to the latest.

$ update.sh

Commands

CLI Aliases

Directory Listing

Show contents of current directory as a list with color.

$ ls

Simple HTTP Server

Run a python server with the static files in the current directory. Port defaults to 8000.

$ pyserver <port>

Delete node_modules/ and reinstall packages

$ npmplease

Python3

$ python

Python3 PIP

$ pip

Git Aliases

Branches

$ git b

Branches (including remote)

$ git bb

Logs (with graph)

$ git l

Remotes

$ git r

Update Submodules

$ git sub

Scripts

Brew

You can install and update brew and listed dependencies using the following command.

$ brew.sh

Cask

$ cask.sh

Gem

You can install and update rbenv and listed dependencies using the following command.

$ gem.sh

NPM

You can install and update npm listed dependencies using the following command.

$ npm.sh

OS X

You can set common default OS X preferences with the following command.

$ osx.sh

Functions

cpprun

Compile a C++ file, execute, and then delete the compiled binary.

$ cpprun main.cpp

create-nodejs-starter-kit

Make a new Node.js project using the repo located at https://github.com/neogeek/nodejs-starter-kit.

$ create-nodejs-starter-kit <name>

create-reactjs-starter-kit

Make a new React.js project using the repo located at https://github.com/neogeek/reactjs-starter-kit.

$ create-reactjs-starter-kit <name>

gitplease

Hard reset a git repo, maintaining the remote git URL.

$ gitplease

portplease

Shutdown process associated with port

$ portplease 6006

postgresplease

Clear all postmaster.pid files

$ postgresplease

rebuildspotlight

Rebuild Spotlight index

$ rebuildspotlight

removebom

Remove BOM (Byte order mark) character from file

$ removebom file.txt

restarttouchbar

Restarts the Mac Touchbar

$ restarttouchbar

rhash

Generate a random hash using shasum -a 256.

$ rhash

Setup Godot Project with .gitignore

Initializes a new git project with a Godot specific .gitignore

$ setupgodot

Setup Unity Project with .gitignore

Initializes a new git project with a Unity specific .gitignore

$ setupunity

Setup Unreal Project with .gitignore

Initializes a new git project with a Unreal specific .gitignore

$ setupunreal
Badges
Extracted from project README
Tests