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

28
terminal/.bashrc Normal file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env bash
#
# ~/.bashrc
#
# shellcheck disable=SC1090
CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
# load additional aliases
if [ -d "$CONFDIR/sh/alias.d" ]; then
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
fi
if [ -d "$CONFDIR/bash/alias.d" ]; then
for _alias in "$CONFDIR/bash/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
fi
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '