g* auto git commands added, some encoding stuff as well

This commit is contained in:
2022-06-17 17:40:46 -04:00
parent d6c388bfb5
commit 75db2da32f
12 changed files with 262 additions and 2 deletions

View File

@ -60,6 +60,7 @@ sources=(
"${HOME}/.bash_functions"
"${HOME}/.bash_functions2"
"${HOME}/.cargo/env"
"${HOME}/.config/gom/init"
"${KITTY_INSTALLATION_DIR}/shell-integration/bash/kitty.bash"
)
@ -117,6 +118,16 @@ if [[ "$?" == "1" ]]; then
fi
[[ -L "${ssh_auth_link}" ]] && [[ -e "${ssh_auth_link}" ]] && export SSH_AUTH_SOCK="$ssh_auth_link"
# autotmux
# export AT=true on connecting host to enable
default_session=shell
tls 2>/dev/null | grep -E "$default_session"'.*attached' &>/dev/null
not_in_tmux="$?"
no_auto="${HOME}/.config/autotmux/disable"
if [[ ! -f "$no_auto" ]] && [[ "$AT" == 'true' ]] && [[ "$not_in_tmux" ]]; then
stx "${default_session}"
fi
# Eternal bash history.
# ---------------------
# Undocumented feature which sets the size to "unlimited".