Include ssh_config; rename Host susanoo

This commit is contained in:
Philip Henning 2024-06-11 07:52:12 +02:00
parent e5ca559150
commit 33270abf66
6 changed files with 33 additions and 8 deletions

View file

@ -138,6 +138,10 @@ dotfiles:
f_secretfiles: f_secretfiles:
dst: ~/.bin/secretfiles dst: ~/.bin/secretfiles
src: bin/secretfiles src: bin/secretfiles
f_config:
src: ssh/config
dst: ~/.ssh/config
chmod: '600'
profiles: profiles:
AINCRAD: AINCRAD:
dotfiles: dotfiles:
@ -162,6 +166,7 @@ profiles:
- f_wsladdhypervroute - f_wsladdhypervroute
- f_wslenablehypervforwarding - f_wslenablehypervforwarding
- f_wslshowhypervforwarding - f_wslshowhypervforwarding
- f_config
AINCRAD-wsl: AINCRAD-wsl:
dotfiles: dotfiles:
- d_fonts - d_fonts
@ -185,6 +190,7 @@ profiles:
- f_wsladdhypervroute - f_wsladdhypervroute
- f_wslenablehypervforwarding - f_wslenablehypervforwarding
- f_wslshowhypervforwarding - f_wslshowhypervforwarding
- f_config
sbx0nucmac01.home.pphg.tech: sbx0nucmac01.home.pphg.tech:
dotfiles: dotfiles:
- f_vimrc - f_vimrc
@ -200,7 +206,8 @@ profiles:
- f_c3check - f_c3check
- f_zprofile - f_zprofile
- f_commonfunc - f_commonfunc
susanoo.int.r3w.de: - f_config
susanoo.local:
dotfiles: dotfiles:
- f_vimrc - f_vimrc
- f_zshrc - f_zshrc
@ -218,6 +225,7 @@ profiles:
- f_rmquarantine - f_rmquarantine
- f_commonfunc - f_commonfunc
- f_secretfiles - f_secretfiles
- f_config
yoetunheimr: yoetunheimr:
dotfiles: dotfiles:
- d_bspwm - d_bspwm
@ -248,6 +256,7 @@ profiles:
- f_wsladdhypervroute - f_wsladdhypervroute
- f_wslenablehypervforwarding - f_wslenablehypervforwarding
- f_wslshowhypervforwarding - f_wslshowhypervforwarding
- f_config
YOETUNHEIMR-wsl: YOETUNHEIMR-wsl:
dotfiles: dotfiles:
- d_fonts - d_fonts
@ -271,6 +280,7 @@ profiles:
- f_wsladdhypervroute - f_wsladdhypervroute
- f_wslenablehypervforwarding - f_wslenablehypervforwarding
- f_wslshowhypervforwarding - f_wslshowhypervforwarding
- f_config
ymir: ymir:
dotfiles: dotfiles:
- f_zshrc - f_zshrc
@ -294,6 +304,7 @@ profiles:
- f_commonfunc - f_commonfunc
- f_gpgagent - f_gpgagent
- f_secretfiles - f_secretfiles
- f_config
workspace: workspace:
dotfiles: dotfiles:
- d_fonts - d_fonts
@ -305,6 +316,7 @@ profiles:
- d_colors - d_colors
- f_zprofile - f_zprofile
- f_commonfunc - f_commonfunc
- f_config
WVDEWOBMC001307: WVDEWOBMC001307:
dotfiles: dotfiles:
- f_vimrc - f_vimrc
@ -325,3 +337,4 @@ profiles:
- f_rmquarantine - f_rmquarantine
- f_commonfunc - f_commonfunc
- f_secretfiles - f_secretfiles
- f_config

View file

@ -124,7 +124,7 @@ EOF
fi fi
} }
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%} {%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
####################################### #######################################
# Shows a netstat -tulpn styled output on mac. # Shows a netstat -tulpn styled output on mac.
# Globals: # Globals:

12
dotfiles/ssh/config Normal file
View file

@ -0,0 +1,12 @@
Include /Users/phg/.colima/ssh_config
#
# {{@@ header() @@}}
#
Include config.d/*
Include config.d/*/*
{%@@ if profile == 'susanoo.local' or profile == 'WVDEWOBMC001307' @@%}Host *
IdentityAgent "~/Library/Group Containers/group.strongbox.mac.mcguill/agent.sock"
{%@@ endif @@%}

View file

@ -9,7 +9,7 @@ export VISUAL
EDITOR='vim' EDITOR='vim'
export EDITOR export EDITOR
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%} {%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
[[ $(command -v /opt/homebrew/bin/brew) ]] && eval "$(/opt/homebrew/bin/brew shellenv)" [[ $(command -v /opt/homebrew/bin/brew) ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
# Added by Toolbox App # Added by Toolbox App

View file

@ -17,7 +17,7 @@ export ANSIBLE_NOCOWS=1
# Include ~/.local/bin to PATH # Include ~/.local/bin to PATH
[[ -d "{{@@ env['HOME'] @@}}/.local/bin" ]] && export PATH="{{@@ env['HOME'] @@}}/.local/bin:${PATH}" [[ -d "{{@@ env['HOME'] @@}}/.local/bin" ]] && export PATH="{{@@ env['HOME'] @@}}/.local/bin:${PATH}"
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%}# Include /opt/homebrew/opt/gnu-getopt/bin to PATH {%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}# Include /opt/homebrew/opt/gnu-getopt/bin to PATH
[[ -d "/opt/homebrew/opt/gnu-getopt/bin" ]] && export PATH="/opt/homebrew/opt/gnu-getopt/bin:${PATH}" [[ -d "/opt/homebrew/opt/gnu-getopt/bin" ]] && export PATH="/opt/homebrew/opt/gnu-getopt/bin:${PATH}"
{%@@ endif @@%}# Include $(go env GOPATH) to PATH {%@@ endif @@%}# Include $(go env GOPATH) to PATH
@ -49,7 +49,7 @@ export GPG_TTY=$(tty)
# X410 (Windows X11 Server) # X410 (Windows X11 Server)
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
{%@@ endif @@%} {%@@ endif @@%}
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%} {%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
export HOMEBREW_CASK_OPTS="--appdir=~/Applications" export HOMEBREW_CASK_OPTS="--appdir=~/Applications"
{%@@ endif @@%} {%@@ endif @@%}

View file

@ -112,7 +112,7 @@ plugins=(
#zsh-completions (https://github.com/zsh-users/zsh-completions/issues/603) #zsh-completions (https://github.com/zsh-users/zsh-completions/issues/603)
zsh-navigation-tools zsh-navigation-tools
zsh-ssh zsh-ssh
{%@@ if profile == 'ymir' or profile == 'susanoo.int.r3w.de' @@%} # Mac specifics {%@@ if profile == 'ymir' or profile == 'susanoo.local' @@%} # Mac specifics
brew brew
iterm2 iterm2
macos macos
@ -123,7 +123,7 @@ plugins=(
autoload -U compinit && compinit autoload -U compinit && compinit
{%@@ if profile == 'ymir' or profile == 'susanoo.int.r3w.de' @@%} {%@@ if profile == 'ymir' or profile == 'susanoo.local' @@%}
# Source fzf-tab-completions # Source fzf-tab-completions
# source {{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh # source {{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh
# zstyle ':completion:*' fzf-search-display true # zstyle ':completion:*' fzf-search-display true
@ -190,7 +190,7 @@ fi
# Include $(go env GOPATH) to PATH # Include $(go env GOPATH) to PATH
[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}" [[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}"
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%} {%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
# Decide which homebrew installation (x64_86 / arm64) should be used # Decide which homebrew installation (x64_86 / arm64) should be used
if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
local brew_path="/usr/local/homebrew/bin" local brew_path="/usr/local/homebrew/bin"