Code Monkey home page Code Monkey logo

dotfiles's People

Contributors

fengb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dotfiles's Issues

Speedup

$ time source ~/.bashrc
real	0m0.162s

$ time find $HOME/bin -type l -depth 1 | tr "\n" ':'
real	0m0.010s

$ time /usr/libexec/java_home
real	0m0.020s

$ time source ~/.bashrc_shared/chnode 
real	0m0.004s

$ time source ~/.bashrc_shared/chruby.sh 
real	0m0.009s

$ time source ~/.bashrc_shared/git-completion 
real	0m0.020s

$ time source ~/.bashrc_shared/z.sh 
real	0m0.012s

$ time chruby 2
real	0m0.079s

$ time chnode 7
real	0m0.004s

Update bash scripts

Create a script (or git hook) that automatically fetches files that are in this repo:

.bashrc_shared.link/chruby.sh
.bashrc_shared.link/git-completion
.bashrc_shared.link/z.sh
bin/shared.link/kich

chnode is super spammy

Solution: try porting over chruby

$ chruby
 * ruby-2.3.3

$ chnode
Usage: chnode [OPTIONS] VERSION
       chnode [OPTIONS] system

Options:
    -h, -?, --help  Display this help
    -l, --list      List all available Node versions
    -r, --refresh   Refresh and find all available Node versions
    -v, --verbose   Be verbose when changing versions
    -V, --version   Display version information

Available Node versions:
    6.2.0
    7.5.0
    7.6.0 *

For help or feedback please contact Barry Allard <[email protected]> (previous maintainer was Andri Möll <[email protected]>)
see https://github.com/steakknife/chnode.

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.