Commits

Anonymous committed 98d42a1 Draft

Changes

Comments (0)

Files changed (3)

 
 PS1='\[\e[1;37m\]\u@\h \[\e[1;34m\]\w \[\e[1;32m\]\$\[\e[0m\] '
 
+HISTSIZE=10000
+HISTFILESIZE=20000
+HISTCONTROL=ignoreboth
+shopt -s histappend
+
 export EDITOR='vim'
 
 alias ls='ls --color=auto'
 complete -cf sudo
 complete -cf man
 set -o vi
-
-trunk=/home/lykata/Dropbox/devel/SIL/rekord-ng/trunk
+PATH="/usr/local/bin:$PATH"
+#trunk=/home/lykata/Dropbox/devel/SIL/rekord-ng/trunk
+trunk=~/tmp/fass-ng/trunk
 TERM=xterm-256color
 
 #Enable history search

coffee_less_watch.rb

+TRUNK = 'Dropbox/devel/SIL/rekord-ng/trunk'
+
+LESSC = TRUNK + '/ext/node_modules/less/bin/lessc'
+
+REKORD_CLIENT_PATH = "#{TRUNK}/src/rekord_client"
+REKORD_STATIC_PATH = "#{REKORD_CLIENT_PATH}/static"
+
+REKORD_COFFEE_PATH = "#{REKORD_STATIC_PATH}/coffee"
+REKORD_LESS_PATH = "#{REKORD_STATIC_PATH}/less"
+REKORD_JS_PATH = "#{REKORD_STATIC_PATH}/js"
+
+REKORD_COFFEE_FILES = %x[ls #{REKORD_COFFEE_PATH}]
+
+
+CLIENT_COMMON_PATH =  "#{TRUNK}/src/client_common"
+CLIENT_COMMON_STATIC_PATH = "#{CLIENT_COMMON_PATH}/static"
+CLIENT_COMMON_COFFEE_PATH = "#{CLIENT_COMMON_PATH}/static/coffee"
+
+puts CLIENT_COMMON_COFFEE_PATH
+puts "REKORD LESS PATH #{REKORD_LESS_PATH}"
+puts "REKORD COFFEE PATH #{REKORD_COFFEE_PATH}"
+puts "REKORD JS PATH #{REKORD_JS_PATH}"
+
+def compile_coffee
+    %x[coffee -c -j #{REKORD_JS_PATH}/compiled.js #{REKORD_COFFEE_PATH}/ #{CLIENT_COMMON_COFFEE_PATH}/]
+end
+
+def compile_less
+    %x[#{LESSC} #{REKORD_LESS_PATH}/main.less > #{REKORD_STATIC_PATH}/style.css ]
+end
+
+def os_notify(message)
+  title = "Watchr Message"
+  %x[notify-send "#{message}"]
+end
+watch("#{REKORD_COFFEE_PATH}/*") { |m| 
+    compile_coffee
+    os_notify "Coffeescript files compiled!"
+}
+
+watch("#{REKORD_LESS_PATH}/*") { |m| 
+    puts m
+    compile_less
+    os_notify "LESS files compiled!"
+}
+%x[notify-send watch started]
+puts "Watch started!"
 call vundle#rc()
 
 " Bundles!"
+Bundle 'Color-Sampler-Pack'
+Bundle 'koron/nyancat-vim'
+Bundle 'kevinw/pyflakes-vim'
+Bundle 'klen/rope-vim'
+Bundle 'groenewege/vim-less'
 Bundle 'rdolgushin/snipMate-acp'
 Bundle 'gmarik/vundle' 
 Bundle 'MarcWeber/vim-addon-mw-utils'
 Bundle 'kchmck/vim-coffee-script'
 Bundle 'vim-scripts/AutoComplPop'
 Bundle 'kien/ctrlp.vim'
-Bundle 'klen/python-mode'
 Bundle 'tmallen/proj-vim'
 Bundle 'carlosvillu/coffeScript-VIM-Snippets'
+Bundle 'flazz/vim-colorschemes'
+Bundle 'nvie/vim-flake8'
 
 filetype plugin indent on
 
 "========================================
+" Powerline 
+"========================================
+let g:Powerline_symbols = 'fancy'
+
+"========================================
 " CTRLP bindings
 "========================================
 nnoremap <c-o> :CtrlPCurWD <CR>