terminal: Create module to consolidate term utils

Terminal application, a variety of shell configurations, terminal file
and session management all consolidated in one place.
This commit is contained in:
Marty Oehme 2023-01-07 16:11:40 +01:00
parent 2e0c992a54
commit 9781b26b22
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9
31 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#!/usr/bin/env zsh
#
# load global sh env vars
[ -f "$XDG_CONFIG_HOME/sh/env" ] && source "$XDG_CONFIG_HOME/sh/env"
if [ -d "$XDG_CONFIG_HOME/sh/env.d" ]; then
for _env in "$XDG_CONFIG_HOME/sh/env.d"/*.sh; do
. "$_env"
done
unset _env
fi
# load zsh specific env vars
if [ -d "$XDG_CONFIG_HOME/zsh/env.d" ]; then
for _env in "$XDG_CONFIG_HOME/zsh/env.d"/*.zsh; do
. "$_env"
done
unset _env
fi
# add XDG_CONFIG_HOME/zsh/completions to fpath
# zsh uses it to look for completions; throw all
# completions in these dotfiles in there
fpath=("$XDG_CONFIG_HOME/zsh/completions" $fpath)