Commits

José Antonio Pérez Sánchez committed 8569327

use new powerline config

  • Participants
  • Parent commits 3e7abaf

Comments (0)

Files changed (5)

File home/.inputrc

     set page-completions off
     set completion-query-items 350
     set show-all-if-ambiguous on
+
+    "tab": complete
  
 $endif
 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
 # Example format: plugins=(rails git textmate ruby lighthouse)
-plugins=(git mercurial perl python battery ant ssh-agent history-substring-search rvm)
+plugins=(git mercurial perl python battery ant ssh-agent history-substring-search rvm per-directory-history)
 case $(uname) in
   Darwin)
     plugins=($plugins osx brew iterm2 )
   if (tmux has-session 2>/dev/null); then
     exec tmux attach-session
   else
-    exec tmux new
+    echo "Starting new TMUX session..."
+    exec env TERM=screen-256color-bce tmux new
   fi
 fi
 
 bindkey -M vicmd '?' history-incremental-search-backward
 
 # force 256 color xterm
-if [ "$TERM" = "xterm" ]; then
-  export TERM=xterm-256color
-fi
+#if [ "$TERM" = "xterm" ]; then
+  #export TERM=xterm-256color
+#fi
 
 # add rvm if there
 if [ -d $HOME/.rvm/scripts/rvm ]; then
 stty -ixon # free C-s
 setterm -bfreq 0 # disable beep
 
+# load powerline prompt
+source $(python -c "import powerline, os; print os.path.dirname(str(powerline.__file__));")/bindings/zsh/powerline.zsh

File home/bin/install-solarized-gnome-terminal

 gconftool-2 --set "/apps/gnome-terminal/profiles/$profile/background_color" --type string "#00002B2B3636"
 gconftool-2 --set "/apps/gnome-terminal/profiles/$profile/foreground_color" --type string "#65657B7B8383"
 
+

File home/config/powerline/config.json

 			"theme": "default"
 		},
 		"shell": {
-			"colorscheme": "default",
+			"colorscheme": "solarized",
 			"theme": "default"
 		},
 		"tmux": {
 			"theme": "default"
 		},
 		"vim": {
-			"colorscheme": "default",
+			"colorscheme": "solarized",
 			"theme": "default",
 			"local_themes": {
 				"cmdwin": "cmdwin",

File home/config/powerline/themes/vim/default.json

 		"left": [
 			{
 				"name": "mode",
-				"exclude_modes": ["nc"]
+				"exclude_modes": ["nc"],
+				"args": {
+					"override": {
+						"n": "N",
+						"i": "I",
+						"v": "V",
+						"V": "V.ln",
+						"CTRL-V": "V.bl",
+						"R": "R",
+						"s": "S",
+						"S": "S.ln",
+						"CTRL-S": "S.bl"
+					}
+				}
 			},
 			{
 				"name": "paste_indicator",
 				"align": "r"
 			},
 			{
-				"name": "virtcol_current",
+				"name": "col_current",
 				"draw_divider": false,
 				"priority": 30,
 				"before": ":",