@yhjor/dotfiles

1.2.1 • Public • Published

Automate your dots

Travis Status
  • Aggregate your preferences and configurations under version control
  • Abstract complicated shell scripts with modern ES2015 in Node.js
  • Design for simplicity and productivity for Node.js development

What's inside

  • zsh, antigen and it's plugin
  • set of shell alias
  • configurable OSX settings
  • a packages definition file of brew/yarn/etc with auto installation

Before Start

source setup.sh

It will install all necessary packages for MacOS such as brew and npm.

After installation: yarn link

The dot commands

Just execute dot in your shell, an interactive command will be shown.

Alt text

And you might need to initialize it once since different machines might have different configs:

Alt text

Symlink all dotfiles makes editing easy:

Alt text

Switching from bash to zsh is necessary, Sorry :)

Alt text

The dot files

OSX Settings (dots/.osx)

# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "

# Disable smart dashes as they’re annoying when typing code
# defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false

Git Config (dots/.gitconfig)

[branch]
  autosetuprebase = always
  autosetupmerge = always

[apply]
  whitespace = fix

[push] default = current

[include]
path = ~/.gituser

[alias]
  co = !sh -c \"git checkout $(git branch | fzf)\"
diffs = "!git diff --color $@ | diff-so-fancy"
  bo = !sh -c \"git fetch origin $(git current):feature/$1 && git checkout feature/$1 && git branch -u origin/$(git current) feature/$1\"
	clear-merged = !sh -c \"git branch --merged | grep -E 'feature/|fix/' | grep -v \\* | xargs -n 1 git branch -d\"

More

Take a look inside ./dots

Enjoy!

Package Sidebar

Install

npm i @yhjor/dotfiles

Weekly Downloads

4

Version

1.2.1

License

MIT

Last publish

Collaborators

  • yhjor