This is my dotfiles project. It is inspired from YADR. I removed all the plugins that i don't need, removed html/css/javascript/ruby/rails support, added python and golang support. I also updated the vim configuration to use pathogen instead of Vundle.
I also added my bashrc with support to liquidprompt.
Feel free to fork my work. Otherwise you can use the amazing YADR
To get started please run: Just clone the repo and run make. To update the plugins, please run make update.
Read on to learn what YADR provides!
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
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
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
orgit lg
- a much more usable git loggit b
- a list of branches with summary of last commitgit r
- a list of remotes with infogit t
- a list of tags with infogit nb
- a (n)ew (b)ranch - like checkout -bgit cp
- cherry-pick -x (showing what was cherrypicked)git simple
- a clean format for creating changelogsgit recent-branches
- if you forgot what you've been working ongit unstage
(remove from index) andgit uncommit
(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
- Navigation : ctrl-space, easy-motion and more
- Code manipulation : python support, golang-support, comments, highlighting
- Utils - indents, paste buffer management, lots more
- General enhancements that don't add new commands
A list of some of the most useful commands that YADR provides in vim are included below. This is not a comprehensive list. To get deeper knowledge, practice a few of these every day, and then start looking into the lists of plugins above to learn more.
,z
- go to previous buffer (:bp),x
- go to next buffer (:bn)Ctrl-o
- Old cursor position - this is a standard mapping but very useful, so included hereCtrl-i
- opposite of Ctrl-O (again, this is standard)
,gf
orCtrl-f
- same as vim normal gf (go to file), but in a vertical split (works with file.rb:123 line numbers also)gF
- standard vim mapping, here for completeness (go to file at line number)K
- Search the current word under the cursor and show results in quickfix window,hl
- toggle search highlight on and off,gg
or,ag
- Grep command line, type between quotes. Uses Ag Silver Searcher.//
- clear the search
Ctrl-Space
toggle the ctrlspace plugin- easymotion
- Automatic autocomplete using Neocomplete
,"
,'
,]
,)
,}
to surround a word in these common wrappers.,.
to go to last edit location (same as'.
) because the apostrophe is hard on the pinky
Ctrl-h,l,j,k
- to move left, right, down, up between splitsQ
- Intelligent Window Killer. Close windowwincmd c
if there are multiple windows to same buffer, or kill the bufferbwipeout
if this is the last window into it.vv
- vertical split (Ctrl-w,v
)ss
- horizontal split (Ctrl-w,s
),qo
- open quickfix window (this is where output from Grep goes),qc
- close quickfix
,cf
- Copy Filename of current file (full path) into system (not vi) paste buffer,cn
- Copy Filename of current file (name only, no path),yw
- yank a word from anywhere within the word (so you don't have to go to the beginning of it),ow
- overwrite a word with whatever is in your yank buffer - you can be anywhere on the word. saves having to visually select it,ocf
- open changed files (stolen from @garybernhardt). open all files with git changes in splits
,cv
- (Vim Command) copies the command under your cursor and executes it in vim. Great for testing single line changes to vimrc.,vr
- (Vim Reload) source current file as a vim file
- Debugging vim keymappings
- Overriding vim settings with ~/.vimrc.after and friends
- Adding your own vim plugins
Learn more about YADR's pry customizations and how to install