#!/bin/sh # This file is sourced by non-login bash shells if ! pgrep -u "$USER" ssh-agent > /dev/null; then ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env" fi if [[ ! "$SSH_AUTH_SOCK" ]]; then source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null fi export GPG_TTY=$(tty) gpg-connect-agent updatestartuptty /bye >/dev/null ## BEGIN foot title magic https://codeberg.org/dnkl/foot/issues/780 _urlencode() { local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${1:$i:1}" case $c in %) printf '%%%02X' "'$c" ;; *) printf "%s" "$c" ;; esac done } osc2_cwd() { printf '\033[>01t' printf '\033]2;file://%s%s\033\\' "$(_urlencode "$PWD")" } ## END foot title magic https://codeberg.org/dnkl/foot/issues/780 for f in $HOME/dotfiles/shellconfig_*; do . "$f"; done #ncneofetch #neofetch