From 192ed5c20bd5f0ae282119346546a55f6ad811ae Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 10 Mar 2022 20:14:38 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Adds=20base=20ZSH=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/zsh/.zlogin | 16 ++++++++++++++++ .config/zsh/.zlogout | 5 +++++ .config/zsh/.zshenv | 31 +++++++++++++++++++++++++++++++ .config/zsh/.zshrc | 0 4 files changed, 52 insertions(+) create mode 100644 .config/zsh/.zlogin create mode 100644 .config/zsh/.zlogout create mode 100644 .config/zsh/.zshenv create mode 100644 .config/zsh/.zshrc diff --git a/.config/zsh/.zlogin b/.config/zsh/.zlogin new file mode 100644 index 0000000..9b5709f --- /dev/null +++ b/.config/zsh/.zlogin @@ -0,0 +1,16 @@ + +# ~/.zlogin + + + + +# Compile .zcompdump file, if modified, to increase startup speed +# Executed on startin the background, so won't afftect current session +# Credit @htr3n. More info: https://htr3n.github.io/2018/07/faster-zsh/ +{ + zcompdump="${ZDOTDIR:-$HOME}/.zcompdump" + if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; + then + zcompile "$zcompdump" + fi +} &! \ No newline at end of file diff --git a/.config/zsh/.zlogout b/.config/zsh/.zlogout new file mode 100644 index 0000000..437c33d --- /dev/null +++ b/.config/zsh/.zlogout @@ -0,0 +1,5 @@ + +# ~/.zlogin + +clear +reset \ No newline at end of file diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv new file mode 100644 index 0000000..c5eefde --- /dev/null +++ b/.config/zsh/.zshenv @@ -0,0 +1,31 @@ +# ~/.zshenv +# Core envionmental variables + +# Set XDG directories +export XDG_CONFIG_HOME="${HOME}/.config" +export XDG_DATA_HOME="${HOME}/.local/share" +export XDG_BIN_HOME="${HOME}/.local/bin" +export XDG_LIB_HOME="${HOME}/.local/lib" +export XDG_CACHE_HOME="${HOME}/.cache" + +# Set default applications +export EDITOR="vim" +export TERMINAL="konsole" +export BROWSER="firefox" +export PAGER="less" + +## Respect XDG directories +export CARGO_HOME="${XDG_DATA_HOME}/cargo" +export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker" +export KDEHOME="${XDG_CONFIG_HOME}/kde" +export LESSHISTFILE="-" # Disable less history. +export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass" +export PIP_CONFIG_FILE="${XDG_CONFIG_HOME}/pip/pip.conf" +export PIP_LOG_FILE="${XDG_DATA_HOME}/pip/log" +export VIMINIT=":source $XDG_CONFIG_HOME/vim/vimrc" +export WGETRC="${XDG_CONFIG_HOME}/wget/wgetrc" +export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc" +export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc" +export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" +export ZLIB="${ZDOTDIR}/lib" + diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..e69de29