Code Monkey home page Code Monkey logo

dotfiles-old's Introduction

                             _                    _ _
                            | |                  | | |
             _   _  __ _  __| |_ __   ____   __ _| | |__
            | | | |/ _` |/ _` | '__| |____| / _` | | ___|
            | |_| | (_| | (_| | |          | (_| | | |__
             \__, |\__,_|\__,_|_|           \__,_|_|\___|
              __/ |
             |___/

    # YADR-alt
    # A YADR fork with a focus on terminal VIM and user customization.

    $ sh -c "`curl -fsSL https://raw.github.com/ianks/yadr-alt/master/install.sh`"

scrot1 scrot2

Installation

To get started please run:

sh -c "`curl -fsSL https://raw.github.com/ianks/yadr-alt/master/install.sh`"

Note: YADR will automatically install all of its subcomponents. If you want to be asked about each one, use:

sh -c "`curl -fsSL https://raw.github.com/ianks/yadr-alt/master/install.sh`" -s ask

Upgrading

Upgrading is easy.

cd ~/.yadr
git pull --rebase
rake update

Always be sure to run rake update after pulling to ensure plugins are updated

What's included, and how to customize

Read on to learn what YADR provides!

ZSH

Think of Zsh as a more awesome bash without having to learn anything new. Automatic spell correction for your commands, syntax highlighting, and more. We've also provided lots of enhancements:

  • Vim mode and bash style Ctrl-R for reverse history finder
  • Ctrl-x,Ctrl-l to insert output of last command
  • Fuzzy matching - if you mistype a directory name, tab completion will fix it
  • fasd integration - hit z and partial match for recently used directory. Tab completion enabled.
  • Prezto - the power behind YADR's zsh
  • How to add your own ZSH theme

Aliases

Lots of things we do every day are done with two or three character mnemonic aliases. Please feel free to edit them:

ae # alias edit
ar # alias reload

Git Customizations

YADR will take over your ~/.gitconfig, so if you want to store your usernames, please put them into ~/.gitconfig.user

It is recommended to use this file to set your user info. Alternately, you can set the appropriate environment variables in your ~/.secrets.

  • git l or gl- a much more usable git log
  • git b or gb- a list of branches with summary of last commit
  • git r - a list of remotes with info
  • git t or gt- a list of tags with info
  • git nb or gnb- a (n)ew (b)ranch - like checkout -b
  • git cp or gcp- cherry-pick -x (showing what was cherrypicked)
  • git simple - a clean format for creating changelogs
  • git recent-branches - if you forgot what you've been working on
  • git unstage / guns (remove from index) and git uncommit / gunc
  • (revert to the time prior to the last commit - dangerous if already pushed) aliases
  • Some sensible default configs, such as improving merge messages, push only pushes the current branch, removing status hints, and using mnemonic prefixes in diff: (i)ndex, (w)ork tree, (c)ommit and (o)bject
  • Slightly improved colors for diff

RubyGems

A .gemrc is included. Never again type gem install whatever --no-ri --no-rdoc. --no-ri --no-rdoc is done by default.

Tmux configuration

tmux.conf provides some sane defaults for tmux on Mac OS like a powerful status bar and vim keybindings. You can customize the configuration in ~/.tmux.conf.user.

Vimization of everything

The provided inputrc and editrc will turn your various command line tools like mysql and irb into vim prompts. There's

Vim - What's included

YADR-alt aims for having mnemonic leader keybindings. There is always a top level concept, followed by action to activate some functionality.

For example, <SPC>fe runs a 'File Explore' while <SPC>fg greps for a pattern in your files.

For a list of any of the commands, simply run <SPC>(letter)h. i.e. <SPC>gh will list the leader commands for git.

Extending and overriding YADR settings

Misc

Vim troubles with Lua

brew install vim --with-lua --with-luajit

Pry offers a much better out of the box IRB experience with colors, tab completion, and lots of other tricks. You can also use it as an actual debugger by installing pry-byebug.

Learn more about YADR's pry customizations and how to install

note: Requires Hammerspoon to be installed.

Automate OSX tasks using Hammerspoon. For example, CMD ALT CTRL f will open a Firefox window from anywhere in the OS. CMD ALT CTRL h will snap a window to the left side of the screen and you guessed it, CMD ALT CTRL l will snap it to the right.

dotfiles-old's People

Contributors

cap10morgan avatar darylrobbins avatar duhanebel avatar fabiopelosin avatar fayimora avatar fwfabio avatar giorni avatar gonzedge avatar ianks avatar jasonwbarnett avatar jby avatar jeanmertz avatar jeffwidman avatar kylewest avatar lfilho avatar maletor avatar marioricalde avatar mcornick avatar n0nick avatar nandalopes avatar nikolai-b avatar paulnsorensen avatar petrushka avatar rafaelregis avatar sagmor avatar skwp avatar stevenbarragan avatar syqingyu avatar taybin avatar victormours avatar

Watchers

 avatar  avatar  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.