#!/usr/bin/env bash
# ~/.bashrc.d/bashrc-mine
# byMasterKTO

## SSH configuration
# Start or load SSH agent
if which keychain > /dev/null 2>/dev/null; then
  eval $(keychain --quiet --eval)
else
  echo "WARNING: keychain not found!"
fi

# Set Keychain aliases
alias kc-admin='keychain ~/.ssh/admin'
alias kc-nas='keychain ~/.ssh/nas'
alias kc-clean='keychain wipe'
alias kc-l='keychain list'

# Set syncloud alias TODO
#alias syncloud='nextcloudcmd -u alex ~/Nextcloud https://cloud.kto.black'

# Set vbox alias
alias vboxstart='vboxmanage startvm --type=headless'

# Set git prompt NOTE if too slow, see .git-prompt.sh for an alternative solution
[ -e ~/.git-prompt.sh ] && source ~/.git-prompt.sh
[ -e ~/.git-prompt.sh ] && GITPS1='$(__git_ps1 " (%s)")'
[ -e ~/.git-prompt.sh ] && PS1=${PS1:0:${#PS1}-4}$GITPS1' \$ '
