mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-11 05:55:29 +00:00
init
This commit is contained in:
92
.zimrc
Normal file
92
.zimrc
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
|
||||||
|
|
||||||
|
#################
|
||||||
|
# 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 git-info history input utility meta custom \
|
||||||
|
syntax-highlighting history-substring-search prompt completion)
|
||||||
|
|
||||||
|
|
||||||
|
###################
|
||||||
|
# MODULE SETTINGS #
|
||||||
|
###################
|
||||||
|
|
||||||
|
#
|
||||||
|
# Prompt
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set your desired prompt here
|
||||||
|
zprompt_theme='lean'
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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) # cursor)
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
72
.zshrc
Normal file
72
.zshrc
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
# Source zim
|
||||||
|
if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
|
||||||
|
source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
|
||||||
|
fi
|
||||||
|
export PATH=$PATH:/
|
||||||
|
|
||||||
|
# user bin
|
||||||
|
export PATH="$HOME/bin:${PATH}"
|
||||||
|
|
||||||
|
# scripts
|
||||||
|
export PATH="$HOME/scripts:${PATH}"
|
||||||
|
|
||||||
|
# python binaries
|
||||||
|
export PATH="$HOME/.local/bin:${PATH}"
|
||||||
|
|
||||||
|
# enable fasd autocompletion
|
||||||
|
eval "$(fasd --init auto)"
|
||||||
|
|
||||||
|
################# alias ###############################
|
||||||
|
|
||||||
|
# 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: :)@}"`"
|
||||||
|
}
|
||||||
|
|
||||||
|
# separator
|
||||||
|
function hr {
|
||||||
|
print ${(l:COLUMNS::=:)}
|
||||||
|
}
|
||||||
|
|
||||||
|
alias groclean='rm \#*'
|
||||||
|
|
||||||
|
setKeyboard() {
|
||||||
|
setxkbmap -layout $1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Gromacs stuff
|
||||||
|
==================================================
|
||||||
|
swapgmx() {
|
||||||
|
if [ "$GMXBIN" = "/opt/gromacs-cuda/bin" ];
|
||||||
|
then
|
||||||
|
gmxsbm;
|
||||||
|
else
|
||||||
|
gmxcuda;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
gmxsbm() {
|
||||||
|
echo "Sourcing GROMACS SBM"
|
||||||
|
source /opt/gromacs-sbm/bin/GMXRC
|
||||||
|
}
|
||||||
|
gmxcuda() {
|
||||||
|
echo "Sourcing GROMACS cuda"
|
||||||
|
source /opt/gromacs-cuda/bin/GMXRC
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$GMXRC" ]; then
|
||||||
|
GMXRC="/opt/gromacs-cuda/bin/GMXRC"
|
||||||
|
fi
|
||||||
|
source $GMXRC
|
||||||
|
|
||||||
|
=============================================
|
||||||
|
|
||||||
|
# perl
|
||||||
|
PATH="/home/bauer/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||||
|
PERL5LIB="/home/bauer/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
|
PERL_LOCAL_LIB_ROOT="/home/bauer/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
|
PERL_MB_OPT="--install_base \"/home/bauer/perl5\""; export PERL_MB_OPT;
|
||||||
|
PERL_MM_OPT="INSTALL_BASE=/home/bauer/perl5"; export PERL_MM_OPT;
|
||||||
Reference in New Issue
Block a user