Add configuration for susanoo

Also run dotdrop via virtualenv (see Readme)
This commit is contained in:
Philip Henning 2024-01-10 19:11:43 +01:00
parent afbf0e98a8
commit c1da3bddae
7 changed files with 48 additions and 25 deletions

View file

@ -7,15 +7,19 @@ I manage my dotfiles using [dotdrop](https://github.com/deadc0de6/dotdrop).
1. Install [Homebrew](https://brew.sh/)
2. Install `coreutils` via Homebrew.
3. Install [pyenv](https://github.com/pyenv/pyenv)
4. Install the latest python version via pyenv
5. Configure the latest python version as system (global) default
a. Install [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv)
b. Add pyenv temporarly to your path: `export PATH=$(pyenv root)/shims:${PATH}`
c. Install the latest python version via pyenv
d. Create a new virtual-env caleld `dotdrop` via `pyenv virtualenv <just installed python verison> dotdrop`
4. Initialize pyenv; run `pyenv init` for instructions
5. Activate the `dotdrop` virtualenv by using `pyenv shell dotdrop`
6. Clone dotfiles, install dependencies for dotdrop and install dotfiles.
```shell
git clone https://github.com/shokinn/.files ~/.files \
&& cd ~/.files \
&& git submodule update --init \
&& cd .. \
&& pip install --user -r ~/.files/dotdrop/requirements.txt \
&& pip install -r ~/.files/dotdrop/requirements.txt \
&& eval $(grep -v "^#" ~/.files/.env.public) ~/.files/dotdrop.sh install
```

View file

@ -184,6 +184,39 @@ profiles:
- f_wsladdhypervroute
- f_wslenablehypervforwarding
- f_wslshowhypervforwarding
sbx0nucmac01.home.pphg.tech:
dotfiles:
- f_vimrc
- f_zshrc
- f_zshenv
- f_powerlevel10krc
- d_colors
- f_c3cp
- f_mount_c3voc
- f_c3l
- f_c3kdenlive
- f_c3mpv
- f_c3check
- f_zprofile
- f_commonfunc
susanoo.int.r3w.de:
dotfiles:
- f_vimrc
- f_zshrc
- f_zshenv
- f_powerlevel10krc
- d_colors
- f_c3cp
- f_mount_c3voc
- f_c3l
- f_c3kdenlive
- f_c3mpv
- f_c3check
- f_zprofile
- f_dotdrop.sh
- f_rmquarantine
- f_commonfunc
- f_secretfiles
yoetunheimr:
dotfiles:
- d_bspwm
@ -271,21 +304,6 @@ profiles:
- d_colors
- f_zprofile
- f_commonfunc
sbx0nucmac01.home.pphg.tech:
dotfiles:
- f_vimrc
- f_zshrc
- f_zshenv
- f_powerlevel10krc
- d_colors
- f_c3cp
- f_mount_c3voc
- f_c3l
- f_c3kdenlive
- f_c3mpv
- f_c3check
- f_zprofile
- f_commonfunc
WVDEWOBMC001307:
dotfiles:
- f_vimrc

View file

@ -5,4 +5,5 @@
#
eval $(grep -v "^#" {{@@ env['HOME'] @@}}/.files/.env.public)
export PYENV_VERSION="dotdrop"
{{@@ env['HOME'] @@}}/.files/dotdrop.sh ${@}

View file

@ -58,11 +58,11 @@ EOF
fi
}
{%@@ if profile == 'WVDEWOBMC001307' @@%}
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%}
macnst (){
netstat -Watnlv | grep LISTEN | awk '{"ps -o comm= -p " $9 | getline procname;colred="\033[01;31m";colclr="\033[0m"; print colred "proto: " colclr $1 colred " | addr.port: " colclr $4 colred " | pid: " colclr $9 colred " | name: " colclr procname; }' | column -t -s "|"
}
{%@@ endif @@%}{%@@ if profile == 'WVDEWOBMC001307' @@%}
function setProxyEnv(){
local HIGHLIGHT='\033[36;1m'
local RESET='\033[0;0m'

View file

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

View file

@ -46,7 +46,7 @@ export GPG_TTY=$(tty)
# X410 (Windows X11 Server)
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
{%@@ endif @@%}
{%@@ if profile == 'WVDEWOBMC001307' @@%}
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%}
export HOMEBREW_CASK_OPTS="--appdir=~/Applications"
{%@@ endif @@%}

View file

@ -107,7 +107,7 @@ plugins=(
autoload -U compinit && compinit
{%@@ if profile == 'ymir' @@%}
{%@@ if profile == 'ymir' or profile == 'susanoo.int.r3w.de' @@%}
# Source fzf-tab-completions
# source {{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh
# zstyle ':completion:*' fzf-search-display true
@ -170,7 +170,7 @@ if [ -f "{{@@ env['HOME'] @@}}/.local/bin/pipx" ]; then
eval "$(register-python-argcomplete pipx)"
fi
{%@@ if profile == 'WVDEWOBMC001307' @@%}
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%}
# Decide which homebrew installation (x64_86 / arm64) should be used
if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
local brew_path="/usr/local/homebrew/bin"