Giter VIP home page Giter VIP logo

dotfiles's Introduction

Dotfiles

This dotfiles is fork from chuyik/dotfiles and with some of my customization.

dotfiles

Setup

# Install required Xcode Command Line Tools
xcode-select --install

# Clone this repo to your personal dir
git clone [email protected]:Chen-jj/dotfiles.git ~/dotfiles

# Better checkout install.sh and customize it before start
# Run install.sh
./dotfiles/install.sh

Brewing

Install homebrew packages

  • ack
  • tree
  • wget
  • nginx
  • zsh
  • zsh-completions
  • git
  • git-lfs
  • autojump
  • tmux
  • reattach-to-user-namespace
  • ccat

OSX Configuration

finder

  • Show all filename extensions
  • Show hidden files by default
  • Show the ~/Library folder in Finder
  • Disable window animations and Get Info animations
  • Allow text selection in Quick Look
  • When performing a search, search the current folder by default
  • Disable the warning when changing a file extension
  • Avoid creating .DS_Store files on network volumes
  • Enable subpixel font rendering on non-Apple LCDs
  • Show Path bar in Finder

Safari & WebKit

  • Enable Safari’s debug menu

OS

  • Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
  • Enable tap to click (Trackpad)
  • Disable Dashboard
  • Don’t show Dashboard as a Space
  • Disable auto correction
  • Disable smart quotes
  • Disable smart dashes
  • For TextEdit
  • For Notes
  • Kill affected applications

Symlinks

  • ~/.gemrc
  • ~/.gitconfig
  • ~/.tmux.conf
  • ~/.zshrc

.gemrc

  • Only using the sources of ruby-china.
  • Enable verbose mode which can help us check the progress of installation while gem installing package.
  • Remove the ri and rdoc when installing new gems to speed up the gem installations and have less clutter in the system.

.gitconfig

Waring: you should check and modify the user name and email.

  • Setup the global Git hooks for Git LFS.

  • Alias:

    ls

    git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset' --abbrev-commit --date=relative --name-status

    lt

     git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset' --abbrev-commit --date=relative
  • set osxkeychain model of credential to remember the user and pwd for https connection.

  • color the git ui

  • pull with rebase

.tumx.conf

You can binding your favor prefix key which value is C-a as default here.

Also, you can tap C-r to reload tmux after editing ~/.tmux.conf.

.zshrc

Themes

Bullet Train

Plugins

  • zsh-nvm: Zsh plugin for installing, updating and loading nvm.
  • zsh-better-npm-completion: Better completion for npm.
  • git: Adds a lot of git aliases and functions.
  • autojump: Enables autojump if installed with homebrew.
  • sublime: Provides two commands, st [file_name] to open a specified file in Sublime Text and stt to open the current directory in Sublime Text.
  • history: Provides some aliases for using the history command.
  • dirhistory: Allows us to navigate the history of previous current-working-directories using ALT-LEFT and ALT-RIGHT.

Aliases

  • clsclear
  • ofd: open .
  • zshrc: st ~/.zshrc
  • tmrc: st ~/.tmux.conf
  • hosts: st /etc/hosts
  • quickp: git add . & git commit -m 'quick commit' & git push
  • ta: tmux attach
  • tls: tmux ls
  • tat: tmux attach -t
  • tns: tmux new-session -s

Others

iTerm2

Color scheme: Oceanic Dark

bin

  • tm: Helping to attach tmux session or create a new named tmux session.

dotfiles's People

Contributors

chen-jj avatar

Watchers

James Cloos avatar qbyin avatar

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.