diff --git a/home/.bash_aliases b/home/.bash_aliases index 89fbdc1..1cf6527 100644 --- a/home/.bash_aliases +++ b/home/.bash_aliases @@ -17,10 +17,8 @@ alias ka=killall alias g=git alias k=kubectl -alias kns=kubens -alias kctx=kubectx alias a=ansible -alias c=code-insiders +alias c=code alias e=$EDITOR # Completion for aliases diff --git a/home/.bash_completion b/home/.bash_completion index 002146f..e6387a7 100644 --- a/home/.bash_completion +++ b/home/.bash_completion @@ -38,8 +38,17 @@ if type doctl > /dev/null 2>&1; then source <(doctl completion bash) fi -if type helm > /dev/null 2>&1; then - source <(helm completion bash) +# Homebrew completions +if command -v brew > /dev/null; then + HOMEBREW_PREFIX=$(brew --prefix) + if type brew &>/dev/null; then + for COMPLETION in "$HOMEBREW_PREFIX"/etc/bash_completion.d/*; do + [[ -f $COMPLETION ]] && source "$COMPLETION" + done + if [[ -f ${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh ]]; then + source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" + fi + fi fi if type brew > /dev/null 2>&1; then diff --git a/home/.bash_env b/home/.bash_env index bd42ab3..8695a1c 100644 --- a/home/.bash_env +++ b/home/.bash_env @@ -52,8 +52,8 @@ if [ -d /opt/man-pages ]; then export MANPATH=/opt/man-pages:${MANPATH} fi -if [ -x /usr/local/bin/code-insiders ]; then - export EDITOR="/usr/local/bin/code-insiders -w" +if [ type code > /dev/null 2>&1 ]; then + export EDITOR="code -w" else export EDITOR=vim fi diff --git a/home/.gitconfig b/home/.gitconfig index e31f914..48cbf23 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -41,7 +41,6 @@ [difftool "sourcetree"] cmd = code-insiders --diff --wait \"$LOCAL\" \"$REMOTE\" - path = [mergetool "sourcetree"] cmd = code-insiders -n --wait \"$MERGED\" trustExitCode = true diff --git a/home/.ssh/config b/home/.ssh/config index ac5ae27..90e3c64 100644 --- a/home/.ssh/config +++ b/home/.ssh/config @@ -59,6 +59,10 @@ Host villas-demo.os-cloud.eonerc.rwth-aachen.de Host keycloak.os-cloud.eonerc.rwth-aachen.de User ubuntu +Host acs-fedora-svg-2 + User svg + HostName 134.130.169.13 + Host inl-villas User root HostName 141.221.118.93 @@ -80,6 +84,12 @@ Host dtu-villas ForwardAgent yes HostName 10.10.12.22 +Host tud-villas + User iepg + ProxyJump villas-hub + ForwardAgent yes + HostName 10.10.12.21 + Host acs-nrg5-vpmu-demo HostName 10.100.1.142 User ubuntu