33 lines
822 B
Bash
33 lines
822 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"
|
|
|
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
|
sway > "${XDG_LOG_HOME}/sway.log" 2>&1 && exit
|
|
fi
|