Coder Social home page Coder Social logo

dotfiles's Introduction

dotfiles

my dotfiles

Install oh-my-zsh first (Optional):

If you want to use "zsh + oh-my-zsh", just first change your shell to zsh (e.g. 'chsh -s /bin/zsh' in MAC) and then follow the install instructions at http://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh, below are my steps :

# via curl
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# via wget
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

After installed ~/.oh-my-zsh, a ~/.zshrc will be created, you shold now download the auto install script from next section and then run './auto_install_dotfiles.sh {platform}' to replace ~/.zshrc with /zsh/{platform}/zshrc

[tmux] Fix 'Using the Mac OS X programs pbpaste and pbcopy under tmux does not work':

[IMPORTANT] MAC may need to 'brew install reattach-to-user-namespace' or the tmux will [exited] at startup:

brew install reattach-to-user-namespace

Download and run auto install script:

Get auto_install_dotfiles.sh use curl or wget :

  curl -LSso "auto_install_dotfiles.sh" "https://raw.githubusercontent.com/bearlin/dotfiles/master/auto_install_dotfiles.sh"
  # Or..
  wget "https://raw.githubusercontent.com/bearlin/dotfiles/master/auto_install_dotfiles.sh" -O "auto_install_dotfiles.sh" 

Backup the original bash settings:

cp ~/.bashrc ~/.bashrc.ori
cp ~/.bash_logout ~/.bash_logout.ori

Then run the script according to your platform type:

  chmod +x auto_install_dotfiles.sh
  ./auto_install_dotfiles.sh mac
  # Or..
  ./auto_install_dotfiles.sh ubuntu
  # Or..
  ./auto_install_dotfiles.sh cygwin

  NOTE: Defaul = ubuntu

Set git env (Optional):

After installed this dotfiles, your ~/.gitconfig already set to user.name=BearLin , user.email=[email protected] and core.editor=vim, you can update them with below commands:

  git config --global user.name [your name]
  git config --global user.email [your email]
  git config --global core.editor [your prefered editor]

  e.g.:
  git config --global user.name "BearLin"
  git config --global user.email "[email protected]"
  git config --global core.editor vim

Or with below script:

  ~/.dotfiles/scripts/set_env_git.sh [your name] [your email] [your prefered editor]

  e.g.:
  ~/.dotfiles/scripts/set_env_git.sh BearLin [email protected] vim

#References USING GIT AND GITHUB TO MANAGE YOUR DOTFILES
Getting Started With Dotfiles
dotfiles.github.io - Your unofficial guide to dotfiles on GitHub
https://github.com/notice501/dotfiles
https://github.com/chinghanho/.dotfiles

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.