dotfiles/system/.config/zsh/.zprofile
Severin Kaderli fea711b84c
Add configurations for tyr
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2024-05-06 19:51:07 +02:00

30 lines
732 B
Bash

#!/bin/bash
#
# SCRIPT NAME:
# .zprofile
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This script is called when you start a login shell.
#
# USAGE:
# This script is automatically executed when you start a login shell.
# Load env variables (might have problems with spaces on Zsh)
export $(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
# Set shell specific env variables
export HISTCONTROL="ignoreboth"
export HISTSIZE="10000"
export SAVEHIST="${HISTSIZE}"
export HISTFILESIZE="${HISTSIZE}"
if [[ -f "${HOME}/.config/zsh/.zshrc" ]]; then
. "${HOME}/.config/zsh/.zshrc"
fi
# Restore custom dconf configuration
dconf load / < "${XDG_CONFIG_HOME}/dconf/root.conf"