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

## SSH configuration
# Start or load SSH agent TODO manage keychain absence
eval $(keychain --quiet --eval)

# Set Keychain aliases
alias kc-home='keychain ~/.ssh/home'
alias kc-project='keychain ~/.ssh/project'
alias kc-clean='keychain wipe'
alias kcd-home='ssh-add -d ~/.ssh/home'
alias kcd-project='ssh-add -d ~/.ssh/project'
alias kc-l='keychain list'

# Set SSH VNC alias (may be temporary, if we could set it up in SSH config file)
alias sshvnc='ssh -L 5901:localhost:5900'

# 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' \$ '
