update from laptop

This commit is contained in:
Daniel Bauer
2018-09-04 14:39:42 +02:00
parent 73be223cd9
commit a4643f9565
37 changed files with 825 additions and 67 deletions

93
shell/.zimrc Normal file
View File

@@ -0,0 +1,93 @@
#################
# CORE SETTINGS #
#################
#
# Zim settings
#
# Select what modules you would like enabled.
# The second line of modules may depend on options set by modules in the first
# line. These dependencies are noted on the respective module's README.md.
zmodules=(directory environment git history input utility custom \
syntax-highlighting history-substring-search prompt completion)
###################
# MODULE SETTINGS #
###################
#
# Prompt
#
# Set your desired prompt here
zprompt_theme='eriner'
#
# Completion
#
# set an optional host-specific filename for the completion cache file
# if none is provided, the default '.zcompdump' is used.
#zcompdump_file=".zcompdump-${HOST}-${ZSH_VERSION}"
#
# Utility
#
# Uncomment to enable command correction prompts
# See: http://zsh.sourceforge.net/Doc/Release/Options.html#Input_002fOutput
#setopt CORRECT
#
# Environment
#
# Set the string below to the desired terminal title format string.
# The terminal title is redrawn upon directory change, however, variables like
# ${PWD} are only evaluated once. Use prompt expansion strings for dynamic data:
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
# The example below uses the following format: 'username@host:/current/directory'
ztermtitle='%n@%m:%~'
#
# Input
#
# Uncomment to enable double-dot expansion.
# This appends '../' to your input for each '.' you type after an initial '..'
#zdouble_dot_expand='true'
#
# Syntax-Highlighting
#
# This determines what highlighters will be used with the syntax-highlighting module.
# Documentation of the highlighters can be found here:
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
# For (u)rxvt, termite and gnome-terminal users,
# removing the 'cursor' highlighter will fix the disappearing cursor problem
zhighlighters=(main brackets)
#
# SSH
#
# Load these ssh identities with the ssh module
#zssh_ids=(id_rsa)
#
# Pacman
#
# Set (optional) pacman front-end.
#zpacman_frontend='powerpill'
# Load any helper scripts as defined here
#zpacman_helper=(aur)

34
shell/.zshrc Normal file
View File

@@ -0,0 +1,34 @@
#
# User configuration sourced by interactive shells
#
# Change default zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
export LANG=en_US.UTF-8
export EDITOR='vim'
export SSH_KEY_PATH="~/.ssh/rsa_id"
export TERMINAL="terminator"
export BROWSER="firefox"
source ~/.zshrc_functions
source ~/.zshrc_local
# alter path
export PATH="$HOME/bin:${PATH}" # binaries
export PATH="$HOME/scripts:${PATH}" # scripts
export PATH="$HOME/.local/bin:${PATH}" # python executeables
# fasd autocompletion
eval "$(fasd --init auto)"
# marker
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"
# the fuck?
eval $(thefuck --alias)

43
shell/.zshrc_functions Normal file
View File

@@ -0,0 +1,43 @@
#!/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
}
# clipboard
alias clip='xsel --clipboard'
alias groclean='rm \#*'
alias sm='snakemake'
alias ls='ls -lh'

20
shell/.zshrc_local_t460s Normal file
View File

@@ -0,0 +1,20 @@
source /opt/gromacs-2018.30/bin/GMXRC
# wham
export PATH="/opt/wham/wham:/opt/wham/wham-2d:${PATH}" # binaries
# python
#PYTHONPATH="$PYTHONPATH:/opt/modeller/modlib:/opt/modeller/lib/x86_64-intel8/python3.3"
#export PYTHONPATH
#export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/modeller/lib/x86_64-intel8"
alias mountscratch="sshfs bauer@bioinfo4:/scratch ~/scratch"
function cd {
builtin cd "$@"
if [ -d "venv" ] ; then
source venv/bin/activate
fi
}

28
shell/.zshrc_t460s Normal file
View File

@@ -0,0 +1,28 @@
# Change default zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
export LANG=en_US.UTF-8
export EDITOR='vim'
export SSH_KEY_PATH="~/.ssh/rsa_id"
export TERMINAL="terminator"
export BROWSER="firefox"
export PAGER=most
# source other szh stuff
source ~/.zshrc_functions
source ~/.zshrc_local
# alter path
export PATH="$HOME/bin:${PATH}" # binaries
export PATH="$HOME/scripts:${PATH}" # scripts
export PATH="$HOME/.local/bin:${PATH}" # local executeables
# fasd autocompletion
eval "$(fasd --init auto)"
# marker
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"