Giter Club home page Giter Club logo

dotfiles-1's Introduction

dotfiles

Mislav's configuration files for bash, zsh, git, ruby, and more.

See also: mislav/vimfiles

Installation

Clone somewhere, then run the install script:

$ git clone git://github.com/mislav/dotfiles.git ~/dotfiles
$ ~/dotfiles/install

It won't touch your existing dotfiles, but will symlink the ones that don't exist. If you want to replace your existing dotfiles, simply move them to a backup location and run install again.

Misc. commands in bin

Check the bin directory for awesome commands such as:

  • ansi2html
  • git-unreleased
  • pair
  • proxy
  • tmux-session

zsh

  • enables completions

  • enables Emacs key bindings:

    • C-a/C-e - beginning/end of line
    • C-r/C-s - incremental history search backward/forward
  • C-x C-e - edit current command-line in $EDITOR

  • shell prompt includes:

    1. current directory
    2. last command failed status indicator
    3. git branch
    4. rbenv version
  • autobin - whitelists current directory's bin dir that it should get prepended to $PATH whenever we cd into this project and removed when we leave.

ruby

  • sc - smart script/console; works for Rails 2, Rails 3, Sinatra
  • ss - smart script/server; works for Rails 2, Rails 3
  • sr - Passenger/Pow server restart (touch tmp/restart.txt)

git

  • gl - git pull
  • gp - git push
  • gd - git diff
  • gc - git commit -v
  • gca - git commit -v -a
  • gb - git branch -v
  • st - git status -sb
  • gco - git checkout

tmux

  • C-h/j/k/l - switch to pane in the given direction
  • C-\\ - toggle between last active panes

Under tmux prefix C-a:

  • C-l - clear terminal
  • S - switch to a session that starts with given name, or switch to the last session if no name given
  • m - open man page in a vertical split
  • g - tail log/development.log in a new window
  • R - source ~/.tmux.conf after changes

Regular tmux keybindings:

% vertical split
" horizontal split
! break pane into new window
c new window

o select next pane
{ swap pane with previous
} swap pane with next
n next window
p previous window
) next session
( previous session
; select previously active pane
l select previously active window

s interactive session & window browser
w interactive window browser

$ rename session
, rename window

: command prompt
d detach
f search text in open windows

[ copy mode
] paste buffer
# list buffers
- delete buffer

dotfiles-1's People

Contributors

mislav avatar tclh123 avatar shime avatar rtomayko avatar bastilian avatar reentim avatar

Watchers

Andy R avatar James Cloos 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.