Get rid of old env script

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2023-02-08 19:40:06 +01:00
parent 319f774457
commit bba5b16c6f
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
6 changed files with 46 additions and 62 deletions

View file

@ -19,7 +19,6 @@ setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
unsetopt correct
# Zsh keybindings
# Ctrl + Left
@ -42,11 +41,6 @@ zstyle ':completion:*' menu select
# Persistent rehash
zstyle ':completion:*' rehash true
# Sourcing environment variables
if [ -f "${HOME}/.config/custom/env" ]; then
. "${HOME}/.config/custom/env"
fi
# Enable color support of ls
if [ -f "${XDG_CONFIG_HOME}/custom/dircolors" ]; then
dircolors -b "${XDG_CONFIG_HOME}/custom/dircolors" > /dev/null 2>&1
@ -57,6 +51,18 @@ if [ -f "${XDG_CONFIG_HOME}/custom/aliases" ]; then
. "${XDG_CONFIG_HOME}/custom/aliases"
fi
# Create necessary directories
mkdir -p "${__GL_SHADER_DISK_CACHE_PATH}"
mkdir -p "${XDG_DATA_HOME}/wine/prefixes"
mkdir -p "${XDG_CONFIG_HOME}/bazaar"
mkdir -p "${XDG_STATE_HOME}/zsh"
mkdir -p "${XDG_DATA_HOME}/zsh/zcompdump-${ZSH_VERSION}"
if [ -n "$(command -v compinit)" ]; then
compinit -d "${XDG_DATA_HOME}/zsh/zcompdump-${ZSH_VERSION}"
fi
# Initialize prompt
eval "$(starship init zsh)"
# Plugins
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"