]> git.rmz.io Git - dotfiles.git/commitdiff
Merge branch 'master' of tardis:/dotfiles
authorSamir Benmendil <samir.benmendil@gmail.com>
Tue, 16 Dec 2014 14:08:15 +0000 (14:08 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Tue, 16 Dec 2014 14:08:15 +0000 (14:08 +0000)
.gitmodules
awesome/rules.lua
bin/old/ubuntu-minimal-install [deleted file]
vim/ftplugin/roscpp.vim
vim/ultisnips/c.snippets
vim/vimrc
vim/ycm_extra_conf.py
zsh/aliases/pacman.zsh

index ed6c2a9730844ab066ac4d1d395f02a66692ad8b..b274d065bb404b8522e8a32421dece19196a297e 100644 (file)
@@ -1,6 +1,3 @@
-[submodule "awesome/vicious"]
-       path = awesome/vicious
-       url = http://git.sysphere.org/vicious
 [submodule "awesome/awesome-freedesktop"]
        path = awesome/awesome-freedesktop
        url = https://github.com/terceiro/awesome-freedesktop.git
index a78a85f24174449aff02015e7c67d67afb567db1..2d07e9d317b53719bc31c361ce985faec0ddc8f4 100644 (file)
@@ -3,17 +3,17 @@ local utils = require("utils")
 -- {{{ Rules
 local sc = screen.count()
 
+if sc == 1 then mediatag = tags[1][9] end
 if sc == 2 then mediatag = tags[2][3] end
-if sc == 1 then mediatag = tags[1][4] end
 
-if sc == 2 then wwwtag = tags[2][1] end
 if sc == 1 then wwwtag = tags[1][2] end
+if sc == 2 then wwwtag = tags[2][1] end
 
-if sc == 2 then imtag = tags[2][2] end
 if sc == 1 then imtag = tags[1][3] end
+if sc == 2 then imtag = tags[2][2] end
 
+if sc == 1 then socialtag = tags[1][4] end
 if sc == 2 then socialtag = tags[2][4] end
-if sc == 1 then socialtag = tags[1][5] end
 
 awful.rules.rules = {
     -- All clients will match this rule.
diff --git a/bin/old/ubuntu-minimal-install b/bin/old/ubuntu-minimal-install
deleted file mode 100755 (executable)
index 1786615..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-#######################################################################
-# Ubuntu-Desktop-Minimal: Post-install script to install only the bare
-#                        essentials of an Ubuntu Desktop.
-#######################################################################
-echo "[*] Installing Gnome Essentials"
-sudo apt-get -y install gnome-core gdm network-manager-gnome fast-user-switch-applet \
-human-theme x11-xserver-utils tangerine-icon-theme gnome-themes-ubuntu ubuntu-artwork \
-jockey-gtk gnome-screensaver gnome-utils
-echo "[*] Installing Application Essentials"
-sudo apt-get install -y gcalctool tsclient
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c43b32e86697df6b3ff351dbc0057da927bfbb7f 100644 (file)
@@ -0,0 +1,9 @@
+augroup fs_roscpp
+    autocmd!
+    autocmd BufEnter *.cpp let b:fswitchdst  = 'h'
+    autocmd BufEnter *.cpp let b:fswitchlocs = 'reg:|src$|include/**|'
+    autocmd BufEnter *.h   let b:fswitchdst  = 'cpp'
+    autocmd BufEnter *.h   let b:fswitchlocs = 'reg:/include.*/src/'
+augroup END
+
+set makeprg=catkin_make\ -C$ROS_WORKSPACE
index 618bfe3d8233026fcc10800acc0065a4da1e8082..d535228b2ae56c7dd55df62b7e24fac4892fddec 100644 (file)
@@ -67,16 +67,14 @@ snippet once "Include header once only guard"
 #ifndef ${1:`!p
 if not snip.c:
        import random, string
-       name = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()
-       rand = ''.join(random.sample(string.ascii_letters+string.digits, 8))
-       snip.rv = ('%s_%s' % (name,rand)).upper()
+       snip.rv = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()
 else:
        snip.rv = snip.c`}
 #define $1
 
 ${VISUAL}${0}
 
-#endif /* end of include guard: $1 */
+#endif // $1
 endsnippet
 
 snippet td "Typedef"
index 23e9b8af20b489dab52a56fb59e7d43f5526ab91..c3654183bf704f335e0d820632da701ec558e792 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -232,12 +232,6 @@ augroup cursor_pos
                 \ endif
 augroup END
 
-" auto source vimrc when saved {{{2
-augroup source_vimrc
-    au!
-    autocmd bufwritepost vimrc source $MYVIMRC
-augroup END
-
 " bindings {{{1
 
 " allow both <space> and / to be <leader>
@@ -400,6 +394,13 @@ let g:checkattach_filebrowser = 'ranger'
 " Gundo {{{2
 nnoremap <F7> :GundoToggle<CR>
 
+" fswitch {{{2
+nnoremap <silent> <Leader>ff :FSHere<CR>
+nnoremap <silent> <Leader>fl :FSRight<CR>
+nnoremap <silent> <Leader>fh :FSLeft<CR>
+nnoremap <silent> <Leader>fL :FSSplitRight<CR>
+nnoremap <silent> <Leader>fH :FSSplitLeft<CR>
+
 " fugitive {{{2
 nmap <silent> <leader>dd :tab split \| Gdiff \| wincmd h<CR>
 " delete fugitive buffers when closed
index ba188217009cb151d2f7e952378053eb66934c10..74d7b8ec7fc75a8b73bf12b1b4ad2a25c839951d 100644 (file)
@@ -31,7 +31,6 @@ def FlagsForFile( filename, **kwargs ):
   flags += rospack()
   relative_to = cwd
   final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
-  print flags
 
   return {
     'flags': final_flags,
index 8cb322c9e0ad649572beacdd6ce78d34f9b82edf..2db1503197e4071b0882a57978a7e70539f443f6 100644 (file)
@@ -16,6 +16,8 @@ alias pacexp='sudo pacman -D --asexplicit'  # Mark package as explicit
 alias pacinsd='sudo pacman -S --asdeps'        # Install given package(s) as dependencies of another package
 alias pacmir='sudo pacman -Syy'                # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
 
+[[ -x /usr/bin/packer ]] && alias aur='packer'
+
 # https://bbs.archlinux.org/viewtopic.php?id=93683
 paclist() {
   pacman -Qei | awk 'BEGIN {FS=": "}/^Name/{printf("\033[1;36m%s\033[0m ",$2)}/^Description/{print $2}'