2021-04-28 16:58:24 +02:00
#!/bin/env bash
2021-03-05 12:54:41 +01:00
# Start GPG and SSH agents
export GPG_TTY=$(tty)
2022-07-06 16:09:53 +02:00
# Use OkcAgent's SSH agent client to use my GPG key for SSH sessions.
if ! pgrep okc-ssh-agent > /dev/null; then
okc-ssh-agent > "$PREFIX/tmp/okc-ssh-agent.env"
fi
source "$PREFIX/tmp/okc-ssh-agent.env"
if ! pgrep sshd > /dev/null; then
sshd
2021-03-05 12:54:41 +01:00
fi
# Then add my scripts
export DOTFILES_STUFF_BIN="$HOME/.dotfiles/bin"
2021-05-31 17:36:09 +02:00
export PATH=$PATH:$DOTFILES_STUFF_BIN:$HOME/.local/bin
2021-04-13 09:29:36 +02:00
export DOTFILES_HOME=$HOME/.dotfiles
2021-04-05 11:44:55 +02:00
# clean up bash history
2021-04-09 10:59:52 +02:00
#echo
#rm -rf ~/.bash_history>>/dev/null && history -c && echo "history-cleanup: Shell history cleaned for past session" || echo "history-cleanup: No bash_history file found for past session."
2021-04-06 11:38:02 +02:00
2021-04-09 10:59:52 +02:00
# then do chain sourcing
2022-07-06 16:09:53 +02:00
source ~/.dotfiles/config/bashrc/chain-source
2021-04-25 10:02:26 +02:00