g* auto git commands added, some encoding stuff as well
This commit is contained in:
11
shell/bashrc
11
shell/bashrc
@ -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".
|
||||
|
Reference in New Issue
Block a user