diff --git a/.vim/bundle/vim-snakemake b/.vim/bundle/vim-snakemake new file mode 160000 index 0000000..8976c55 --- /dev/null +++ b/.vim/bundle/vim-snakemake @@ -0,0 +1 @@ +Subproject commit 8976c554eee837edd693c62cbb97b2d2cb029628 diff --git a/.vimrc b/.vimrc index 8494c55..b65039c 100644 --- a/.vimrc +++ b/.vimrc @@ -15,6 +15,7 @@ Plugin 'kien/ctrlp.vim' Plugin 'davidhalter/jedi-vim' Plugin 'hublot/vim-gromacs' Plugin 'lervag/vimtex' +Plugin 'ibab/vim-snakemake' Plugin 'godlygeek/tabular' Plugin 'plasticboy/vim-markdown' diff --git a/.zshrc_functions b/.zshrc_functions new file mode 100644 index 0000000..06d3ae1 --- /dev/null +++ b/.zshrc_functions @@ -0,0 +1,39 @@ +#!/bin/bash + +# open a web browser on google for a query +function google { + function urlencode { + print "${${(j: :)@}//(#b)(?)/%$[[##16]##${match[1]}]}" + } + + xdg-open "https://www.google.com/search?q=`urlencode "${(j: :)@}"`" +} + +# open a web browser on google for a query +function google { + function urlencode { + print "${${(j: :)@}//(#b)(?)/%$[[##16]##${match[1]}]}" + } + + xdg-open "https://www.google.com/search?q=`urlencode "${(j: :)@}"`" +} + + +# alter keyboard layout +setKeyboard() { + setxkbmap -layout $1 +} + +# download pdb file to current dir +pdb() { + URL=http://www.rcsb.org/pdb/files/$1.pdb.gz + if [ -z "$2" ]; then + 2="./" + fi + + wget $URL -P $2 + gunzip $2/$1.pdb.gz +} + + +alias groclean='rm \#*'