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
View File
@@ -0,0 +1 @@
export R_LIBS_USER=$HOME/.local/share/R
+1
View File
@@ -0,0 +1 @@
eval "$(antidot init)"
+1
View File
@@ -0,0 +1 @@
alias cm="chezmoi"
+32
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
View File
@@ -0,0 +1 @@
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh
+1
View File
@@ -0,0 +1 @@
export COOKIECUTTER_CONFIG=/home/jack/.config/cookiecutterrc
+1
View File
@@ -0,0 +1 @@
export alias dat=datalad
+1
View File
@@ -0,0 +1 @@
export DEBUGINFOD_URLS="https://debuginfod.elfutils.org/"
+1
View File
@@ -0,0 +1 @@
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
+1
View File
@@ -0,0 +1 @@
export EDITOR=vim
+1
View File
@@ -0,0 +1 @@
alias ls="exa"
+10
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
+2
View File
@@ -0,0 +1,2 @@
export GIT_DIRTY_PATHS=$HOME/Work:$HOME/Projects:$HOME/.local/share/chezmoi:$HOME/Templates
# echo $(git dirty &)
+1
View File
@@ -0,0 +1 @@
export GOPATH="$XDG_DATA_HOME"/go
+1
View File
@@ -0,0 +1 @@
source <(inv --print-completion-script zsh)
+1
View File
@@ -0,0 +1 @@
export SAL_USE_VCLPLUGIN=gtk3
+37
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"
}
+1
View File
@@ -0,0 +1 @@
export MOZ_ENABLE_WAYLAND=1
+2
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";
+1
View File
@@ -0,0 +1 @@
export OBSIDIAN_USE_WAYLAND=1
+1
View File
@@ -0,0 +1 @@
export PATH=$PATH:$HOME/.local/bin
+3
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 -)"
+3
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"
+1
View File
@@ -0,0 +1 @@
export CCNET_CONF_DIR=$XDG_DATA_HOME/seafile
+4
View File
@@ -0,0 +1,4 @@
export TEXMFHOME=$XDG_CONFIG_HOME/texmf
export TEXMFVAR=$XDG_CACHE_HOME/texmf
export TEXMFCONFIG=$XDG_CONFIG_HOME/texmf
+1
View File
@@ -0,0 +1 @@
alias todo=todoist-cli quick
+1
View File
@@ -0,0 +1 @@
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
+1
View File
@@ -0,0 +1 @@
export ZDOTDIR=$HOME/.config/zsh