From b25c6c8c6035359557bdc3f05e995980083d7605 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 23 Sep 2021 17:35:42 +0200 Subject: [PATCH] Initial commit --- README.md | 2 ++ bashrc-mine | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 README.md create mode 100644 bashrc-mine diff --git a/README.md b/README.md new file mode 100644 index 0000000..4d368b2 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# bashrc-mine +Add-on for [main bashrc](https://gitea.kto.black/adminconf/rcs-general), specific to mine computers diff --git a/bashrc-mine b/bashrc-mine new file mode 100644 index 0000000..93dcfa4 --- /dev/null +++ b/bashrc-mine @@ -0,0 +1,38 @@ +# ~/.bashrc-mine +# byMasterKTO + +## SSH configuration +# Start or load SSH agent TODO manage keychain absence +eval $(keychain --quiet --eval --agents ssh) + +# Set Keychain aliases +alias kc-home='keychain ~/.ssh/home' +alias kc-project='keychain ~/.ssh/project' +alias kc-gem='keychain ~/.ssh/gem' +alias kc-clean='keychain --clear' +alias kcd-home='ssh-add -d ~/.ssh/home' +alias kcd-project='ssh-add -d ~/.ssh/project' +alias kcd-gem='ssh-add -d ~/.ssh/gem' +alias kc-l='keychain -l' + + +# Set Firefox profile backup aliases +alias ff-load='~/Secure/IT/Data/scripts/firefox/firefox-load.sh' +alias ff-save='~/Secure/IT/Data/scripts/firefox/firefox-save.sh' + +# 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 wake alias +alias wake='~/Secure/IT/Data/scripts/wake.sh' + +# 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 +GITPS1='$(__git_ps1 " (%s)")' +PS1=${PS1:0:${#PS1}-4}$GITPS1' \$ '