mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
vimrc update
This commit is contained in:
1
.vim/bundle/vim-snakemake
Submodule
1
.vim/bundle/vim-snakemake
Submodule
Submodule .vim/bundle/vim-snakemake added at 8976c554ee
1
.vimrc
1
.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'
|
||||
|
||||
39
.zshrc_functions
Normal file
39
.zshrc_functions
Normal file
@@ -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 \#*'
|
||||
Reference in New Issue
Block a user