initial env

This commit is contained in:
Sebastian Rust
2024-06-09 19:01:16 +02:00
commit d353787c1a
28 changed files with 113 additions and 0 deletions

1
dot_env.d/R.enabled Normal file
View File

@@ -0,0 +1 @@
export R_LIBS_USER=$HOME/.local/share/R

View File

@@ -0,0 +1 @@
eval "$(antidot init)"

View File

@@ -0,0 +1 @@
alias cm="chezmoi"

View File

@@ -0,0 +1,32 @@
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.local/cache
export XDG_DATA_HOME=$HOME/.local/share
export XDG_STATE_HOME=$HOME/.local/run
# ATOM
export ATOM_HOME="$XDG_DATA_HOME"/atom
# Cargo
export CARGO_HOME="$XDG_DATA_HOME"/cargo
# Cradle
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
#IPython
export IPYTHONDIR="$XDG_CONFIG_HOME"/jupyter
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter
#Java
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
# KDE
export KDEHOME="$XDG_CONFIG_HOME"/kde
# parallel
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
# powerlevel10
export ZDOTDIR="$XDG_CONFIG_HOME"/zsh
#ZSH histfile
export HISTFILE="$XDG_STATE_HOME"/zsh/history
#XAuthority
#export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
#ZOOM
export SSB_HOME="$XDG_DATA_HOME"/zoom
# GTKRC
export GTK_RC_FILES="$XDG_CONFIG_HOME"/gtk-1.0/gtkrc
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
#GPG
export GNUPGHOME="${XDG_DATA_HOME}/gnupg"

1
dot_env.d/conda.enabled Normal file
View File

@@ -0,0 +1 @@
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh

View File

@@ -0,0 +1 @@
export COOKIECUTTER_CONFIG=/home/jack/.config/cookiecutterrc

View File

@@ -0,0 +1 @@
export alias dat=datalad

View File

@@ -0,0 +1 @@
export DEBUGINFOD_URLS="https://debuginfod.elfutils.org/"

1
dot_env.d/docker.enabled Normal file
View File

@@ -0,0 +1 @@
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"

1
dot_env.d/editor.enabled Normal file
View File

@@ -0,0 +1 @@
export EDITOR=vim

1
dot_env.d/exa.enabled Normal file
View File

@@ -0,0 +1 @@
alias ls="exa"

View File

@@ -0,0 +1,10 @@
# Cookiecutter Autocompletion Script
# Function to generate the list of templates
_cookiecutter_templates() {
# List the contents of the $HOME/Templates directory
_files -W /home/jack/Templates
}
# Associate the function with cookiecutter command
compdef _cookiecutter_templates cookiecutter

View File

@@ -0,0 +1,2 @@
export GIT_DIRTY_PATHS=$HOME/Work:$HOME/Projects:$HOME/.local/share/chezmoi:$HOME/Templates
# echo $(git dirty &)

1
dot_env.d/go.enabled Normal file
View File

@@ -0,0 +1 @@
export GOPATH="$XDG_DATA_HOME"/go

View File

@@ -0,0 +1 @@
source <(inv --print-completion-script zsh)

View File

@@ -0,0 +1 @@
export SAL_USE_VCLPLUGIN=gtk3

View File

@@ -0,0 +1,37 @@
#!/usr/bin/env zsh
declare -A levels=([DEBUG]=0 [INFO]=1 [WARN]=2 [ERROR]=3)
# LOG_LEVEL="DEBUG"
logger() {
if [ -z ${LOG_LEVEL+x} ]; then
return 3
fi
local log_message=$1
local log_priority=$2
#check if level exists
[[ ${levels[$log_priority]} ]] || return 1
#check if level is enough
(( ${levels[$log_priority]} < ${levels[$LOG_LEVEL]} )) && return 2
#log here
echo "${log_priority} : ${log_message}"
}
logger.debug(){
logger $1 "DEBUG"
}
logger.info(){
logger $1 "INFO"
}
logger.warn(){
logger $1 "WARN"
}
logger.error(){
logger $1 "ERROR"
}

View File

@@ -0,0 +1 @@
export MOZ_ENABLE_WAYLAND=1

2
dot_env.d/nfy.enabled Normal file
View File

@@ -0,0 +1,2 @@
alias noti="apprise ntfys://tk_a4ml9ld7s7iz25ugvrpib9uz5spmm@ntfy.rust.cloud/babbage";
#alias nfy ="apprise ntfys://tk_a4ml9ld7s7iz25ugvrpib9uz5spmm@ntfy.rust.cloud/babbage";

View File

@@ -0,0 +1 @@
export OBSIDIAN_USE_WAYLAND=1

1
dot_env.d/paths.enabled Normal file
View File

@@ -0,0 +1 @@
export PATH=$PATH:$HOME/.local/bin

3
dot_env.d/pyenv.enabled Normal file
View File

@@ -0,0 +1,3 @@
export PYENV_ROOT="$HOME/.local/pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

View File

@@ -0,0 +1,3 @@
alias rcp="rsync -az --info=progress2 --no-i-r"
alias rmv="rsync -az --info=progress2 --no-i-r --remove-source-files"

View File

@@ -0,0 +1 @@
export CCNET_CONF_DIR=$XDG_DATA_HOME/seafile

4
dot_env.d/texmf.enabled Normal file
View File

@@ -0,0 +1,4 @@
export TEXMFHOME=$XDG_CONFIG_HOME/texmf
export TEXMFVAR=$XDG_CACHE_HOME/texmf
export TEXMFCONFIG=$XDG_CONFIG_HOME/texmf

View File

@@ -0,0 +1 @@
alias todo=todoist-cli quick

View File

@@ -0,0 +1 @@
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'

View File

@@ -0,0 +1 @@
export ZDOTDIR=$HOME/.config/zsh