reorganize dotfiles

This commit is contained in:
Daniel Bauer
2019-03-23 15:39:18 +01:00
parent 74602784b0
commit 30779f0939
51 changed files with 68 additions and 40 deletions

View File

@@ -0,0 +1,75 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
</match>
<!-- Info:
xeffects thread: http://forums.gentoo.org/viewtopic-t-511382.html
http://wiki.archlinux.org/index.php/XOrg_Font_Configuration
http://antigrain.com/research/font_rasterization/index.html
http://fontconfig.org/fontconfig-user.html
-->
<!-- http://bugs.gentoo.org/show_bug.cgi?id=130466 -->
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif for Powerline</family>
<family>Noto Serif</family>
<family>Liberation Serif</family>
<family>DejaVu Serif</family>
<family>Bitstream Vera Serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans for Powerline</family>
<family>Noto Sans</family>
<family>Liberation Sans</family>
<family>DejaVu Sans</family>
<family>Verdana</family>
<family>Bitstream Vera Sans</family>
<family>Arial</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Inconsolata-g for Powerline</family>
<family>Liberation Mono</family>
<family>DejaVu Sans Mono</family>
<family>Bitstream Vera Sans Mono</family>
</prefer>
</alias>
<!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable">
<bool>false</bool>
</patelt>
</pattern>
</rejectfont>
</selectfont>
<match target="pattern">
<test qual="any" name="family"><string>fixed</string></test>
<edit name="family" mode="assign"><string>monospace</string></edit>
</match>
<!-- Avoid embedded bitmap for all fonts -->
<match target="font">
<edit name="embeddedbitmap"><bool>false</bool></edit>
</match>
</fontconfig>

5
profiles/base/.gitconfig Normal file
View File

@@ -0,0 +1,5 @@
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Daniel Bauer
email = bauer@cbs.tu-darmstadt.de

55
profiles/base/.vimrc Normal file
View File

@@ -0,0 +1,55 @@
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256
set nocompatible " be iMproved, required
set number
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Plugin 'zchee/deoplete-jedi'
Plugin 'vim-airline/vim-airline'
Plugin 'kien/ctrlp.vim'
Plugin 'davidhalter/jedi-vim'
Plugin 'hublot/vim-gromacs'
Plugin 'lervag/vimtex'
Plugin 'ibab/vim-snakemake'
Plugin 'Yggdroot/indentLine'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'morhetz/gruvbox'
let g:vim_markdown_folding_disabled = 1
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
syntax on
set softtabstop=4
colorscheme gruvbox
let g:gruvbox_contrast_dark = 'hard'
set background=dark

98
profiles/base/.zimrc Normal file
View File

@@ -0,0 +1,98 @@
#################
# 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=(ssh directory environment git history input utility custom \
syntax-highlighting history-substring-search prompt completion fasd)
#zssh_ids=(id_ed25519)
###################
# MODULE SETTINGS #
###################
#
# Prompt
#
# Set your desired prompt here
#POWERLEVEL9K_DIR_DEFAULT_BACKGROUND='black'
#POWERLEVEL9K_DIR_DEFAULT_FOREGROUND='009'
export TERM="xterm-256color"
DEFAULT_USER=bauer
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh context dir vcs anaconda)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(background_jobs status time)
# Anaconda
POWERLEVEL9K_ANACONDA_RIGHT_DELIMITER='>'
POWERLEVEL9K_ANACONDA_LEFT_DELIMITER='<'
POWERLEVEL9K_ANACONDA_BACKGROUND='24'
POWERLEVEL9K_ANACONDA_FOREGROUND='111'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
zprompt_theme='powerlevel9k'
#zprompt_theme='eriner'
#zprompt_theme='clint'
#
# 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
#
# 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
#
zssh_ids=(id_rsa)
# Load these ssh identities with the ssh module
#
# Pacman
#
# Set (optional) pacman front-end.
#zpacman_frontend='powerpill'
# Load any helper scripts as defined here
#zpacman_helper=(aur)

56
profiles/base/.zshrc Normal file
View File

@@ -0,0 +1,56 @@
if [ -f `which powerline-daemon` ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh
fi
# Change default zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
# gromacs needs to be before ZIM for autocompletion
if [ -z "$GMXRC" ]; then
GMXRC="/opt/gromacs-2018/bin/GMXRC"
fi
source $GMXRC
# preferences
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'
export BAT_PAGER='less'
# alter path
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/anaconda3/bin:${PATH}" # binaries
export PATH="$HOME/bin:${PATH}" # binaries
export PATH="$HOME/scripts:${PATH}" # scripts
export PATH="$HOME/.local/bin:${PATH}" # python executeables
# aliases
if [ -f .cargo/bin/bat ]; then
alias cat='bat'
fi
alias clip='xsel --clipboard'
alias groclean='rm \#*'
alias sm='snakemake'
alias ls='ls -lh'
alias workon='source activate' # enable anaconda environ
# config specific to this machine (not copied from dotfiles)
if [ -f $HOME/.zshrc_local ]; then
source $HOME/.zshrc_local
fi
# fasd autocompletion
eval "$(fasd --init auto)"
# marker
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"