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.
19 lines
457 B
Bash
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
|