dotfiles/terminal/.config/zsh/zprofile
Marty Oehme acc2496bd6
terminal: Move bash and zsh into config directory
With the power of dotter for dotfile management we can move the files we
want to link anywhere in our repository.

So finally we're making use of it to keep the bash config files in the
`terminal/.config/bash` directory, as well as removing the leading dot
from both the zsh configuration files.
2025-10-13 11:26:22 +02:00

19 lines
457 B
Bash

#!/usr/bin/env zsh
[ -f "$XDG_CONFIG_HOME/sh/profile" ] && . "$XDG_CONFIG_HOME/sh/profile"
# .zlogin
#
if [ -d "$XDG_CONFIG_HOME/sh/profile.d" ]; then
for file in "$XDG_CONFIG_HOME/sh/profile.d"/*.sh; do
# shellcheck disable=1090
source "$file"
done
unset file
fi
if [ -d "$XDG_CONFIG_HOME/zsh/profile.d" ]; then
for file in "$XDG_CONFIG_HOME/zsh/profile.d"/*.zsh; do
# shellcheck disable=1090
source "$file"
done
unset file
fi