Permalink
Browse files

updating config files

  • Loading branch information...
1 parent 86fb7ab commit ba9d12836fd2d53cb423523613782d63b4f37611 paramita committed Jul 2, 2012
Showing with 64 additions and 5 deletions.
  1. +11 −0 aliases
  2. +48 −5 tmux.conf
  3. +5 −0 zshrc
View
11 aliases
@@ -59,3 +59,14 @@ alias db-backup-production='heroku pgbackups:capture --remote production'
# Network
alias whats-my-ip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
+
+# Maven
+alias mc="mvn clean"
+alias mcpi="mvn clean package install"
+
+get() {
+url=http://local.slidev.org:8080/api/rest/v1$2
+token=`mongo --quiet sli --eval 'db.userSession.find({"body.principal.externalId":"'$1'"})[0].body.appSession[0].token'`
+response=`curl -s -H "Content-type: application/json" -H "accept: application/${format}" -H "Authorization: bearer $token" $url`
+echo $response | python -mjson.tool
+}
View
@@ -1,14 +1,57 @@
-set -g default-terminal "screen-256color"
+bind C-a send-prefix
+set-option -g default-command "reattach-to-user-namespace -l zsh"
+
+setw -g mode-mouse on
+set -g prefix C-a
+
+set -g history-limit 10000
+
+bind a send-prefix
+
+unbind C-b
+bind C-a send-prefix
-# act like vim
setw -g mode-keys vi
+
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
+
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
-# act like GNU screen
-unbind C-b
-set -g prefix C-a
+# quick pane cycling
+ unbind ^a
+ bind ^a select-pane -t :.+
+
+ set-option -g status-utf8 on
+ set -g status-bg black
+ set -g status-fg green
+ set -g status-left-length 15
+ set -g status-left '#[fg=yellow]#(whoami)'
+ set -g status-right '| #[fg=yellow]%A, %B %e #[fg=green]|#[fg=yellow] %l:%M %p #[fg=green]| '
+ set -g status-justify centre
+
+ # Create splits and vertical splits
+ bind-key | split-window -h
+ bind-key - split-window
+
+ set-window-option -g mode-mouse on
+ set-option -g mouse-select-pane on
+ set-option -g mouse-select-window on
+
+ bind-key -t vi-copy 'v' begin-selection
+ bind-key -t vi-copy 'y' copy-selection
+
+ # Pane resize in all four directions using vi bindings.
+ # Can use these raw but I map them to shift-ctrl-<h,j,k,l> in iTerm.
+ bind-key J resize-pane -D 6
+ bind-key K resize-pane -U 6
+ bind-key H resize-pane -L 6
+ bind-key L resize-pane -R 6
+
+ set -g base-index 1
+
+ bind r source-file ~/.tmux.conf
+ bind-key -t vi-edit C-u delete-line
View
5 zshrc
@@ -5,6 +5,9 @@ fpath=(~/.zsh/completion $fpath)
autoload -U compinit
compinit
+# rake colored summery output
+export FORCE_COLOR=1
+
# automatically enter directories without cd
setopt auto_cd
@@ -63,3 +66,5 @@ setopt CORRECT CORRECT_ALL
# Enable extended globbing
setopt EXTENDED_GLOB
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
+NODE_PATH=/usr/local/lib/node_modules

0 comments on commit ba9d128

Please sign in to comment.