Browse code
Adding xmobar and tmux configurations, updating zshrc and vimrc
- xmobar configuration new: gets mpd info from mpDris2 . . .
- tmux.conf now correctly deals with $TERM environment variable (I
think)
- .zshrc: upated keybindings for Ctrl+Arrows / Home+End keys to work in
tmux.
- TODO: trim fat / split out dependencies on particular programs.
- .vimrc: major reorg. to make config make more sense
- TODO: figger out how to split this up more
Showing 4 changed files
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+new -s catchnet |
|
2 |
+set -g default-terminal "screen-256color" |
|
3 |
+setw -g mode-keys vi |
|
4 |
+ |
|
5 |
+# smart pane switching with awareness of vim splits |
|
6 |
+bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" |
|
7 |
+bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" |
|
8 |
+bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" |
|
9 |
+bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" |
|
10 |
+bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" |
|
11 |
+ |
|
12 |
+ |
|
13 |
+set -g status-left-length 52 |
|
14 |
+set -g status-right-length 451 |
|
15 |
+set -g status-fg white |
|
16 |
+set -g status-bg colour234 |
|
17 |
+set -g window-status-activity-attr bold |
|
18 |
+set -g pane-border-fg colour245 |
|
19 |
+set -g pane-active-border-fg colour39 |
|
20 |
+set -g message-fg colour16 |
|
21 |
+set -g message-bg colour221 |
|
22 |
+set -g message-attr bold |
|
23 |
+set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]' |
|
24 |
+set -g window-status-format "#[fg=white,bg=colour234] #I #W" |
|
25 |
+set -g window-status-current-format "#[fg=colour234,bg=colour39] #[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]" |
|
26 |
+ |
... | ... |
@@ -1,5 +1,3 @@ |
1 |
-set nocompatible |
|
2 |
- |
|
3 | 1 |
"NeoBundle Scripts----------------------------- |
4 | 2 |
if has('vim_starting') |
5 | 3 |
set nocompatible " Be iMproved |
... | ... |
@@ -26,6 +24,8 @@ NeoBundle 'godlygeek/tabular' |
26 | 24 |
NeoBundle 'ytsunetsune/unite-outline-euslisp' |
27 | 25 |
NeoBundle 'Shougo/unite-outline' |
28 | 26 |
NeoBundle 'Shougo/unite.vim' |
27 |
+NeoBundle 'Shougo/vimshell.vim' |
|
28 |
+NeoBundle 'Shougo/vimproc' |
|
29 | 29 |
NeoBundle 'bling/vim-airline' |
30 | 30 |
NeoBundle 'guns/vim-clojure-static' |
31 | 31 |
NeoBundle 'altercation/vim-colors-solarized' |
... | ... |
@@ -59,7 +59,6 @@ NeoBundleCheck |
59 | 59 |
" IMPORTANT: grep will sometimes skip displaying the file name if you |
60 | 60 |
" search in a singe file. This will confuse Latex-Suite. Set your grep |
61 | 61 |
" program to always generate a file-name. |
62 |
-set grepprg=grep\ -nH\ $* |
|
63 | 62 |
|
64 | 63 |
" OPTIONAL: This enables automatic indentation as you type. |
65 | 64 |
filetype indent on |
... | ... |
@@ -67,17 +66,13 @@ filetype indent on |
67 | 66 |
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to |
68 | 67 |
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded. |
69 | 68 |
" The following changes the default filetype back to 'tex': |
70 |
-let g:tex_flavor='xelatex' |
|
71 |
-let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' |
|
72 | 69 |
|
73 | 70 |
|
74 | 71 |
|
75 | 72 |
" Configuration file for vim |
76 |
-set modelines=1 " CVE-2007-2438 |
|
77 | 73 |
|
78 | 74 |
" Normally we use vim-extensions. If you want true vi-compatibility |
79 | 75 |
" remove change the following statements |
80 |
-set backspace=2 " more powerful backspacing |
|
81 | 76 |
|
82 | 77 |
" Don't write backup file if vim is being called by "crontab -e" |
83 | 78 |
au BufWrite /private/tmp/crontab.* set nowritebackup |
... | ... |
@@ -98,92 +93,136 @@ au BufWrite /private/etc/pw.* set nowritebackup |
98 | 93 |
|
99 | 94 |
|
100 | 95 |
|
101 |
- |
|
102 |
-"Turn on line-numbering and auto-indent |
|
103 |
-:set nu |
|
104 |
-":set cindent shiftwidth=2 |
|
105 |
-":set cindent cino=>2 |
|
106 |
- |
|
107 | 96 |
"Diable the anti-python smart indent of # |
108 |
-:set ignorecase |
|
109 |
-:set smartcase |
|
110 |
-:set autoindent |
|
111 |
- |
|
112 |
- |
|
113 |
-"SmartIndent for Python |
|
114 |
-:autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class |
|
115 |
-:autocmd BufRead *.mako set ft=mako |
|
116 |
-:autocmd BufRead *.tac set ft=python |
|
117 |
-:autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e |
|
118 |
- |
|
119 |
-:autocmd BufRead *.md set dictionary+=/usr/share/dict/words |
|
120 |
- |
|
121 |
-:inoremap # X# |
|
122 |
- |
|
97 |
+set ignorecase |
|
98 |
+set smartcase |
|
99 |
+set autoindent |
|
100 |
+set nu |
|
101 |
+set expandtab |
|
102 |
+set tabstop=3 softtabstop=2 |
|
103 |
+set shiftwidth=2 |
|
123 | 104 |
set incsearch |
124 |
-set scrolloff=3 |
|
105 |
+set scrolloff=4 |
|
125 | 106 |
set wildmode=longest,list |
126 | 107 |
set autoread |
127 |
- |
|
128 |
-"Render tabs as 2 columns wide |
|
129 |
-set tabstop=3 expandtab |
|
130 |
-set shiftwidth=3 |
|
131 |
-":else |
|
132 |
-": set tabstop=3 softtabstop=2 expandtab |
|
133 |
-": set shiftwidth=2 |
|
134 |
-":endif |
|
135 |
- |
|
136 |
-"Code shifting with >> operator will shift code by 2 cols |
|
137 |
-" is there a way to shift code by a tab? |
|
138 |
- |
|
139 |
-"Turn Syntax Highlighting on by default, and assume the xterm background is black |
|
140 |
-syntax enable |
|
141 |
-let g:solarized_termtrans=1 |
|
142 | 108 |
set background=dark |
143 | 109 |
set omnifunc=syntaxcomplete#Complete |
144 |
-colorscheme solarized |
|
110 |
+set pastetoggle=<F12> |
|
111 |
+set undodir=~/.vim/undodir |
|
112 |
+set undofile |
|
113 |
+set undolevels=10000 |
|
114 |
+set undoreload=100000 |
|
115 |
+set foldlevel=9 |
|
116 |
+set hidden |
|
117 |
+set laststatus=2 |
|
118 |
+set splitbelow |
|
119 |
+set splitright |
|
120 |
+set grepprg=grep\ -nH\ $* |
|
121 |
+set modelines=1 " CVE-2007-2438 |
|
122 |
+set backspace=2 " more powerful backspacing |
|
145 | 123 |
|
124 |
+let counter = 0 |
|
125 |
+let g:airline_theme="murmur" |
|
126 |
+let g:ghc="/usr/bin/ghc" |
|
127 |
+let g:haddock_browser_callformat = "%s %s" |
|
128 |
+let g:haddock_browser = "open" |
|
129 |
+let g:lisp_rainbow=1 |
|
130 |
+let g:pandoc_no_empty_implicits=1 |
|
131 |
+let g:pandoc_use_hard_wraps = 1 |
|
132 |
+let g:pantondoc_enabled_modules = ["formatting", "folding", "bibliographies", |
|
133 |
+ \"completion", "externals", "metadata", |
|
134 |
+ \"menu", "executors", "motions"] |
|
135 |
+let g:pantondoc_formatting_settings = "h" |
|
136 |
+let g:pantondoc_handled_filetypes = ["markdown", "rst", "textile"] |
|
137 |
+let g:slimv_disable_clojure=1 |
|
138 |
+let g:snips_author="Edward Langley" |
|
139 |
+let g:solarized_termtrans=1 |
|
140 |
+let g:syntastic_python_checkers = ['python'] |
|
141 |
+let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' |
|
142 |
+let g:tex_flavor='xelatex' |
|
143 |
+let g:vimclojure#HighlightBuiltins = 1 |
|
144 |
+let g:vimclojure#HighlightBuiltins = 1 |
|
145 |
+let g:vimclojure#ParenRainbow = 1 |
|
146 |
+let g:vimclojure#ParenRainbow = 1 |
|
147 |
+let g:virtualenv_directory = "$HOME/python_envs" |
|
148 |
+let maplocalleader=',' |
|
149 |
+let $PAGER='' |
|
146 | 150 |
let python_highlight_all = 1 |
147 |
-let python_space_errors=1 |
|
148 | 151 |
let python_no_tab_space_error=1 |
149 |
-nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR> |
|
150 |
-inoremap <F2> :set nonumber! foldcolumn=0<CR> |
|
152 |
+let python_space_errors=1 |
|
153 |
+let vimclojure#WantNailgun = 1 |
|
151 | 154 |
|
152 |
-inoremap <F3> :!spot_control pr<CR> |
|
153 |
-noremap <F3> :!spot_control pr<CR> |
|
154 |
-inoremap <F4> :!spot_control p<CR><CR> |
|
155 |
-noremap <F4> :!spot_control p<CR><CR> |
|
156 |
-inoremap <F5> :!spot_control n<CR> |
|
157 |
-noremap <F5> :!spot_control n<CR> |
|
155 |
+syntax enable |
|
156 |
+colorscheme solarized |
|
158 | 157 |
|
159 |
-autocmd FileType python set complete+=k~/.vim/syntax/python.vim "isk+=.,( |
|
160 |
-autocmd FileType python set noexpandtab |
|
161 |
-autocmd FileType python map K \pW |
|
158 |
+ |
|
159 |
+if &term =~ "xterm\\|rxvt" |
|
160 |
+ " use an orange cursor in insert mode |
|
161 |
+ let &t_SI = "\<Esc>]12;blue\x7" |
|
162 |
+ " use a red cursor otherwise |
|
163 |
+ let &t_EI = "\<Esc>]12;yellow\x7" |
|
164 |
+ silent !echo -ne "\033]12;yellow\007" |
|
165 |
+ " reset cursor when vim exits |
|
166 |
+ autocmd VimLeave * silent !echo -ne "\033]112\007" |
|
167 |
+ " use \003]12;gray\007 for gnome-terminal |
|
168 |
+endif |
|
162 | 169 |
|
163 | 170 |
|
171 |
+ |
|
172 |
+"SmartIndent for Python |
|
173 |
+autocmd BufEnter *.hs compiler ghc |
|
174 |
+autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e |
|
175 |
+autocmd BufRead *.mako set ft=mako |
|
176 |
+autocmd BufRead *.md set dictionary+=/usr/share/dict/words |
|
177 |
+autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif |
|
178 |
+autocmd BufRead *.tac set ft=python |
|
179 |
+autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class |
|
180 |
+autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` |
|
181 |
+autocmd FileType markdown set linebreak tw=110 noexpandtab nosmartindent autoindent |
|
164 | 182 |
autocmd FileType pandoc set linebreak tw=110 noexpandtab nosmartindent autoindent |
165 | 183 |
autocmd FileType pantondoc set linebreak tw=110 noexpandtab nosmartindent autoindent |
166 |
-autocmd FileType markdown set linebreak tw=110 noexpandtab nosmartindent autoindent |
|
167 |
-let g:snips_author="Edward Langley" |
|
168 |
-let g:pandoc_no_empty_implicits=1 |
|
169 |
-let g:pandoc_use_hard_wraps = 1 |
|
170 |
-"let g:pandoc_auto_format = 1 |
|
184 |
+"autocmd FileType python map K \pW |
|
185 |
+autocmd FileType python set complete+=k~/.vim/syntax/python.vim "isk+=.,( |
|
186 |
+" when we reload, tell vim to restore the cursor to the saved position |
|
171 | 187 |
|
172 |
-map W wb"_dwP |
|
173 |
-map CS :sil! :%s/\s\+$//g<CR>``:%s/^\(\t\+\)\( \+\(\t*\)\)\+/\1\3/gc<CR>`` |
|
174 |
-autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` |
|
188 |
+"inoremap X# |
|
175 | 189 |
|
176 |
-map ZZ :w<CR> |
|
177 |
-map ZX :wq<cr> |
|
190 |
+"Turn Syntax Highlighting on by default, and assume the xterm background is black |
|
191 |
+imap <C-g> :Unite outline i |
|
192 |
+imap <F7> :Unite outline i |
|
193 |
+imap <F8> o :,!pbpaste |
|
194 |
+imap <F9> o :,!pbpaste |
|
195 |
+inoremap <expr> <C-L> ListItem() |
|
196 |
+inoremap <expr> <C-R> ListReset() |
|
197 |
+inoremap <F2> :set nonumber! foldcolumn=0<CR> |
|
198 |
+inoremap <F3> :!spot_control pr<CR> |
|
199 |
+inoremap <F4> :!spot_control p<CR><CR> |
|
200 |
+inoremap <F5> :!spot_control n<CR> |
|
201 |
+inoremap <Return> <Return><C-g>u |
|
202 |
+inoremap <Space> <Space><C-g>u |
|
203 |
+inoremap <Tab> <Tab><C-g>u |
|
178 | 204 |
|
179 | 205 |
map <BS> dh |
206 |
+map <C-g> :Unite outline i |
|
207 |
+map CS :sil! :%s/\s\+$//g<CR>``:%s/^\(\t\+\)\( \+\(\t*\)\)\+/\1\3/gc<CR>`` |
|
208 |
+map <F7> :Unite outline i |
|
209 |
+map <F8> o :,!pbpaste |
|
210 |
+map <F9> o :,!pbpaste |
|
211 |
+map <leader>f :Unite file<CR>i |
|
212 |
+map <leader>q :Unite buffer<CR>i |
|
213 |
+map W wb"_dwP |
|
214 |
+map ZX :wq<cr> |
|
215 |
+map ZZ :w<CR> |
|
180 | 216 |
|
181 |
-" when we reload, tell vim to restore the cursor to the saved position |
|
182 |
-:au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif |
|
183 |
- |
|
184 |
-filetype plugin on |
|
185 |
- |
|
186 |
-:set pastetoggle=<F12> |
|
217 |
+nmap <Leader>ci <Plug>VCSCommit |
|
218 |
+nnoremap <C-H> <C-W><C-H> |
|
219 |
+nnoremap <C-J> <C-W><C-J> |
|
220 |
+nnoremap <C-K> <C-W><C-K> |
|
221 |
+nnoremap <C-L> <C-W><C-L> |
|
222 |
+nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR> |
|
223 |
+noremap <F3> :!spot_control pr<CR> |
|
224 |
+noremap <F4> :!spot_control p<CR><CR> |
|
225 |
+noremap <F5> :!spot_control n<CR> |
|
187 | 226 |
|
188 | 227 |
python << EOF |
189 | 228 |
import os |
... | ... |
@@ -194,9 +233,6 @@ for p in sys.path: |
194 | 233 |
vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) |
195 | 234 |
EOF |
196 | 235 |
|
197 |
-let counter = 0 |
|
198 |
-inoremap <expr> <C-L> ListItem() |
|
199 |
-inoremap <expr> <C-R> ListReset() |
|
200 | 236 |
|
201 | 237 |
func ListItem() |
202 | 238 |
let g:counter += 1 |
... | ... |
@@ -208,15 +244,8 @@ func ListReset() |
208 | 244 |
return '' |
209 | 245 |
endfunc |
210 | 246 |
|
211 |
-:set diffopt=vertical,filler,iwhite,foldcolumn:0 |
|
212 |
- |
|
213 |
-map <F8> o :,!pbpaste |
|
214 |
-map <F9> o :,!pbpaste |
|
215 |
-imap <F8> o :,!pbpaste |
|
216 |
-imap <F9> o :,!pbpaste |
|
247 |
+set diffopt=vertical,filler,iwhite,foldcolumn:0 |
|
217 | 248 |
|
218 |
-let $PAGER='' |
|
219 |
-let maplocalleader=',' |
|
220 | 249 |
|
221 | 250 |
"command! -range FmtTable python FmtTable(<f-line1>,<f-line2>) |
222 | 251 |
|
... | ... |
@@ -245,80 +274,12 @@ let maplocalleader=',' |
245 | 274 |
" cb[1:]=tmpBuf[:] |
246 | 275 |
"EOS |
247 | 276 |
|
248 |
-let g:haddock_browser = "open" |
|
249 |
-let g:haddock_browser_callformat = "%s %s" |
|
250 |
-let g:ghc="/usr/bin/ghc" |
|
251 |
-au BufEnter *.hs compiler ghc |
|
252 |
- |
|
253 |
-:inoremap <Space> <Space><C-g>u |
|
254 |
-:inoremap <Tab> <Tab><C-g>u |
|
255 |
-:inoremap <Return> <Return><C-g>u |
|
256 | 277 |
|
257 |
-let g:vimclojure#HighlightBuiltins = 1 |
|
258 |
-let g:vimclojure#ParenRainbow = 1 |
|
259 |
-let vimclojure#WantNailgun = 1 |
|
260 | 278 |
|
261 | 279 |
|
262 | 280 |
highlight PmenuSel ctermfg=LightGray ctermbg=DarkRed |
263 |
-nmap <Leader>ci <Plug>VCSCommit |
|
264 |
- |
|
265 |
-set undodir=~/.vim/undodir |
|
266 |
-set undofile |
|
267 |
-set undolevels=10000 |
|
268 |
-set undoreload=100000 |
|
269 |
-set foldlevel=9 |
|
270 |
-set hidden |
|
271 |
- |
|
272 |
-map <leader>f :Unite file<CR>i |
|
273 |
-map <leader>q :Unite buffer<CR>i |
|
274 |
- |
|
275 |
-map <F7> :Unite outline i |
|
276 |
-imap <F7> :Unite outline i |
|
277 |
-map <C-g> :Unite outline i |
|
278 |
-imap <C-g> :Unite outline i |
|
279 |
- |
|
280 |
- |
|
281 |
-if &term =~ "xterm\\|rxvt" |
|
282 |
- " use an orange cursor in insert mode |
|
283 |
- let &t_SI = "\<Esc>]12;blue\x7" |
|
284 |
- " use a red cursor otherwise |
|
285 |
- let &t_EI = "\<Esc>]12;yellow\x7" |
|
286 |
- silent !echo -ne "\033]12;yellow\007" |
|
287 |
- " reset cursor when vim exits |
|
288 |
- autocmd VimLeave * silent !echo -ne "\033]112\007" |
|
289 |
- " use \003]12;gray\007 for gnome-terminal |
|
290 |
-endif |
|
291 |
- |
|
292 |
-" Pantondoc |
|
293 |
- |
|
294 |
-let g:pantondoc_handled_filetypes = ["markdown", "rst", "textile"] |
|
295 |
-let g:pantondoc_enabled_modules = ["formatting", "folding", |
|
296 |
- \"bibliographies", "completion", "externals", "metadata", |
|
297 |
- \"menu", "executors", "motions"] |
|
298 |
-let g:pantondoc_formatting_settings = "h" |
|
299 |
-let g:lisp_rainbow=1 |
|
300 |
-let g:slimv_disable_clojure=1 |
|
301 |
- |
|
302 |
-let g:vimclojure#HighlightBuiltins = 1 |
|
303 |
-let g:vimclojure#ParenRainbow = 1 |
|
304 |
- |
|
305 |
-set laststatus=2 |
|
306 |
- |
|
307 |
-" airline |
|
308 |
-" |
|
309 |
-let g:airline_theme="murmur" |
|
310 |
- |
|
311 |
-" split settings |
|
312 |
-" |
|
313 |
-nnoremap <C-J> <C-W><C-J> |
|
314 |
-nnoremap <C-K> <C-W><C-K> |
|
315 |
-nnoremap <C-L> <C-W><C-L> |
|
316 |
-nnoremap <C-H> <C-W><C-H> |
|
317 |
-set splitbelow |
|
318 |
-set splitright |
|
319 |
- |
|
320 |
-let g:syntastic_python_checkers = ['python'] |
|
321 | 281 |
|
322 | 282 |
if filereadable(".vim.custom") |
323 | 283 |
so .vim.custom |
324 | 284 |
endif |
285 |
+ |
325 | 286 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,21 @@ |
1 |
+Config { font = "xft:Source Code Pro:size=8:antialias=true" |
|
2 |
+ , bgColor = "black" |
|
3 |
+ , fgColor = "grey" |
|
4 |
+ , position = TopW L 90 |
|
5 |
+ , commands = [ Run Weather "EGPF" ["-t"," <tempF>F","-L","64","-H","77","--normal","green","--high","red","--low","lightblue"] 36000 |
|
6 |
+ , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 |
|
7 |
+ , Run Mpris2 "mpd" ["-t", "(<state>) <artist>/<composer>: <title>"] 10 |
|
8 |
+ , Run Memory ["-t","Mem: <usedratio>%"] 10 |
|
9 |
+ , Run Swap [] 10 |
|
10 |
+ , Run Date "%a %b %_d" "date" 36000 |
|
11 |
+ , Run Date "%H:%M:%S" "time" 10 |
|
12 |
+ , Run Com "cat" ["/proc/loadavg"] "loadavg" 20 |
|
13 |
+ , Run Com "echo" ["$USER"] "username" 864000 |
|
14 |
+ , Run Com "hostname" ["-s"] "hostname" 864000 |
|
15 |
+ , Run StdinReader |
|
16 |
+ ] |
|
17 |
+ , sepChar = "%" |
|
18 |
+ , alignSep = "}{" |
|
19 |
+ , template = "%mpris2% :: %StdinReader% }{ %cpu% | %memory% * %swap% | %loadavg% -- %username%@%hostname% <fc=#ee9a00>%date% %time%</fc> | %EGPF%" |
|
20 |
+ } |
|
21 |
+ |
... | ... |
@@ -154,12 +154,19 @@ compinit |
154 | 154 |
# End of lines added by compinstall |
155 | 155 |
|
156 | 156 |
bindkey -e |
157 |
-bindkey '[1;5D' backward-word |
|
158 |
-bindkey '[5D' backward-word |
|
159 |
-bindkey '[1;5C' forward-word |
|
160 |
-bindkey '[5C' forward-word |
|
161 |
-bindkey 'OH' beginning-of-line |
|
162 |
-bindkey 'OF' end-of-line |
|
157 |
+if [[ ${TERM%-256color} == "screen" ]]; then |
|
158 |
+ bindkey '[D' backward-word |
|
159 |
+ bindkey '[C' forward-word |
|
160 |
+ bindkey '[1~' beginning-of-line |
|
161 |
+ bindkey '[4~' end-of-line |
|
162 |
+else |
|
163 |
+ bindkey '[1;5D' backward-word |
|
164 |
+ bindkey '[5D' backward-word |
|
165 |
+ bindkey '[1;5C' forward-word |
|
166 |
+ bindkey '[5C' forward-word |
|
167 |
+ bindkey 'OH' beginning-of-line |
|
168 |
+ bindkey 'OF' end-of-line |
|
169 |
+fi |
|
163 | 170 |
bindkey '[3~' delete-char |
164 | 171 |
|
165 | 172 |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function |
... | ... |
@@ -314,6 +321,14 @@ pathswitch() { |
314 | 321 |
cd ${PWD/$REMOVE/$REPLACE} |
315 | 322 |
} |
316 | 323 |
#debug |
324 |
+ |
|
325 |
+dirsave() { |
|
326 |
+ pwd | ctext |
|
327 |
+} |
|
328 |
+dirgo() { |
|
329 |
+ cd `ptext` |
|
330 |
+} |
|
331 |
+ |
|
317 | 332 |
ccwd() { |
318 | 333 |
pwd | pbcopy |
319 | 334 |
} |
... | ... |
@@ -468,48 +483,48 @@ export CPATH=$CPATH:$HOME/include |
468 | 483 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib |
469 | 484 |
export VIMCLOJURE_SERVER_JAR="$HOME/lib/vimclojure/server-2.3.6.jar" |
470 | 485 |
|
471 |
-set_colors() |
|
472 |
-{ |
|
473 |
- local base03="002b36" |
|
474 |
- local base02="073642" |
|
475 |
- local base01="586e75" |
|
476 |
- local base00="657b83" |
|
477 |
- local base0="839496" |
|
478 |
- local base1="93a1a1" |
|
479 |
- local base2="eee8d5" |
|
480 |
- local base3="fdf6e3" |
|
481 |
- local yellow="b58900" |
|
482 |
- local orange="cb4b16" |
|
483 |
- local red="dc322f" |
|
484 |
- local magenta="d33682" |
|
485 |
- local violet="6c71c4" |
|
486 |
- local blue="268bd2" |
|
487 |
- local cyan="2aa198" |
|
488 |
- local green="859900" |
|
489 |
- |
|
490 |
- echo -en "\e]P0${base02}" #black |
|
491 |
- echo -en "\e]P8${base03}" #brblack |
|
492 |
- echo -en "\e]P1${red}" #red |
|
493 |
- echo -en "\e]P9${orange}" #brred |
|
494 |
- echo -en "\e]P2${green}" #green |
|
495 |
- echo -en "\e]PA${base01}" #brgreen |
|
496 |
- echo -en "\e]P3${yellow}" #yellow |
|
497 |
- echo -en "\e]PB${base00}" #bryellow |
|
498 |
- echo -en "\e]P4${blue}" #blue |
|
499 |
- echo -en "\e]PC${base0}" #brblue |
|
500 |
- echo -en "\e]P5${magenta}" #magenta |
|
501 |
- echo -en "\e]PD${violet}" #brmagenta |
|
502 |
- echo -en "\e]P6${cyan}" #cyan |
|
503 |
- echo -en "\e]PE${base1}" #brcyan |
|
504 |
- echo -en "\e]P7${base2}" #white |
|
505 |
- echo -en "\e]PF${base3}" #brwhite |
|
506 |
- clear #for background artifacting |
|
507 |
-} |
|
508 |
- |
|
509 |
-if [ "$TERM" = "linux" ]; then |
|
510 |
- set_colors |
|
511 |
-fi |
|
512 |
- |
|
513 |
-unset -f set_colors |
|
486 |
+#set_colors() |
|
487 |
+#{ |
|
488 |
+ #local base03="002b36" |
|
489 |
+ #local base02="073642" |
|
490 |
+ #local base01="586e75" |
|
491 |
+ #local base00="657b83" |
|
492 |
+ #local base0="839496" |
|
493 |
+ #local base1="93a1a1" |
|
494 |
+ #local base2="eee8d5" |
|
495 |
+ #local base3="fdf6e3" |
|
496 |
+ #local yellow="b58900" |
|
497 |
+ #local orange="cb4b16" |
|
498 |
+ #local red="dc322f" |
|
499 |
+ #local magenta="d33682" |
|
500 |
+ #local violet="6c71c4" |
|
501 |
+ #local blue="268bd2" |
|
502 |
+ #local cyan="2aa198" |
|
503 |
+ #local green="859900" |
|
504 |
+ |
|
505 |
+ #echo -en "\e]P0${base02}" #black |
|
506 |
+ #echo -en "\e]P8${base03}" #brblack |
|
507 |
+ #echo -en "\e]P1${red}" #red |
|
508 |
+ #echo -en "\e]P9${orange}" #brred |
|
509 |
+ #echo -en "\e]P2${green}" #green |
|
510 |
+ #echo -en "\e]PA${base01}" #brgreen |
|
511 |
+ #echo -en "\e]P3${yellow}" #yellow |
|
512 |
+ #echo -en "\e]PB${base00}" #bryellow |
|
513 |
+ #echo -en "\e]P4${blue}" #blue |
|
514 |
+ #echo -en "\e]PC${base0}" #brblue |
|
515 |
+ #echo -en "\e]P5${magenta}" #magenta |
|
516 |
+ #echo -en "\e]PD${violet}" #brmagenta |
|
517 |
+ #echo -en "\e]P6${cyan}" #cyan |
|
518 |
+ #echo -en "\e]PE${base1}" #brcyan |
|
519 |
+ #echo -en "\e]P7${base2}" #white |
|
520 |
+ #echo -en "\e]PF${base3}" #brwhite |
|
521 |
+ ##clear #for background artifacting |
|
522 |
+#} |
|
523 |
+ |
|
524 |
+#if [ "$TERM" = "linux" ]; then |
|
525 |
+ #set_colors |
|
526 |
+#fi |
|
527 |
+ |
|
528 |
+#unset -f set_colors |
|
514 | 529 |
|
515 | 530 |
# vim: set filetype=sh: |