mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-01-24 21:08:39 +01:00
🚧 Adds base ZSH files
This commit is contained in:
parent
a18855f1bc
commit
192ed5c20b
16
.config/zsh/.zlogin
Normal file
16
.config/zsh/.zlogin
Normal file
@ -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
|
||||
} &!
|
5
.config/zsh/.zlogout
Normal file
5
.config/zsh/.zlogout
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
# ~/.zlogin
|
||||
|
||||
clear
|
||||
reset
|
31
.config/zsh/.zshenv
Normal file
31
.config/zsh/.zshenv
Normal file
@ -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"
|
||||
|
0
.config/zsh/.zshrc
Normal file
0
.config/zsh/.zshrc
Normal file
Loading…
Reference in New Issue
Block a user