mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 21:22:25 +00:00
Compare commits
No commits in common. "c8f8c4678ea93caa172c0e07acbb80bfb232e187" and "fc1adae28fb7ce8762bcc09ada2881ee3551ef6d" have entirely different histories.
c8f8c4678e
...
fc1adae28f
|
@ -9,15 +9,10 @@ I manage my dotfiles using [dotdrop](https://github.com/deadc0de6/dotdrop).
|
|||
```shell
|
||||
[[ ! $(command -v brew) ]] && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \
|
||||
; brew update \
|
||||
&& brew install coreutils libmagic uv fzf \
|
||||
&& brew install coreutils libmagic uv \
|
||||
&& uv tool install --allow-python-downloads --python 3.11 dotdrop \
|
||||
&& git clone https://github.com/shokinn/.files ~/.files \
|
||||
&& echo "Enter profile name (leave empty for default): " \
|
||||
&& read DOTDROP_PROFILE \
|
||||
&& [[ -n ${DOTDROP_PROFILE} ]] && DOTDROP_PROFILE="-p ${DOTDROP_PROFILE}" || DOTDROP_PROFILE="" \
|
||||
&& ~/.local/bin/dotdrop ${DOTDROP_PROFILE} --cfg=~/.files/config.yaml install \
|
||||
; unset DOTDROP_PROFILE \
|
||||
&& ${SHELL}
|
||||
&& ~/.local/bin/dotdrop --cfg=~/.files/config.yaml install
|
||||
```
|
||||
|
||||
### Manual
|
||||
|
|
235
config.yaml
235
config.yaml
|
@ -143,69 +143,194 @@ dotfiles:
|
|||
dst: ~/.ssh/config
|
||||
chmod: '600'
|
||||
profiles:
|
||||
meta_base:
|
||||
variables:
|
||||
linux: false
|
||||
vw: false
|
||||
wsl: false
|
||||
dotfiles:
|
||||
- d_colors
|
||||
- f_agenix_helper
|
||||
- f_commonfunc
|
||||
- f_config
|
||||
- f_powerlevel10krc
|
||||
- f_rmquarantine
|
||||
- f_secretfiles
|
||||
- f_vimrc
|
||||
- f_zprofile
|
||||
- f_zshenv
|
||||
- f_zshrc
|
||||
meta_linux:
|
||||
variables:
|
||||
linux: true
|
||||
AINCRAD:
|
||||
dotfiles:
|
||||
- d_fonts
|
||||
- f_profile
|
||||
meta_vw:
|
||||
variables:
|
||||
vw: true
|
||||
dotfiles:
|
||||
- f_pu
|
||||
- f_rpki
|
||||
meta_wsl:
|
||||
variables:
|
||||
wsl: true
|
||||
dotfiles:
|
||||
- f_vimrc
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_compton.conf
|
||||
- f_rofi_config
|
||||
- f_c3cp
|
||||
- f_mount_c3voc
|
||||
- f_c3l
|
||||
- f_c3kdenlive
|
||||
- f_c3mpv
|
||||
- f_c3check
|
||||
- f_zprofile
|
||||
- f_start_systemd_shell.sh
|
||||
- f_wsladdhypervroute
|
||||
- f_wslenablehypervforwarding
|
||||
- f_wslshowhypervforwarding
|
||||
os_macos:
|
||||
variables:
|
||||
distro: macos
|
||||
include:
|
||||
- meta_base
|
||||
- f_config
|
||||
AINCRAD-wsl:
|
||||
dotfiles:
|
||||
- f_rmquarantine
|
||||
os_ubuntu:
|
||||
variables:
|
||||
distro: ubuntu
|
||||
include:
|
||||
- meta_base
|
||||
- meta_linux
|
||||
- d_fonts
|
||||
- f_profile
|
||||
- f_vimrc
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_compton.conf
|
||||
- f_rofi_config
|
||||
- f_c3cp
|
||||
- f_mount_c3voc
|
||||
- f_c3l
|
||||
- f_c3kdenlive
|
||||
- f_c3mpv
|
||||
- f_c3check
|
||||
- f_zprofile
|
||||
- f_start_systemd_shell.sh
|
||||
- f_wsladdhypervroute
|
||||
- f_wslenablehypervforwarding
|
||||
- f_wslshowhypervforwarding
|
||||
- f_config
|
||||
sbx0nucmac01.home.pphg.tech:
|
||||
include:
|
||||
- os_macos
|
||||
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
|
||||
- f_config
|
||||
susanoo.local:
|
||||
include:
|
||||
- os_macos
|
||||
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_rmquarantine
|
||||
- f_commonfunc
|
||||
- f_secretfiles
|
||||
- f_agenix_helper
|
||||
- f_config
|
||||
yoetunheimr:
|
||||
dotfiles:
|
||||
- d_bspwm
|
||||
- d_polybar
|
||||
- d_sxhkd
|
||||
- f_fehbg
|
||||
- d_fonts
|
||||
- f_profile
|
||||
- f_vimrc
|
||||
- f_xinitrc
|
||||
- f_xsession
|
||||
- f_zprofile
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_xresources
|
||||
- f_ssh-agent.service
|
||||
- f_compton.conf
|
||||
- f_rofi_config
|
||||
- f_c3cp
|
||||
- f_mount_c3voc
|
||||
- f_c3l
|
||||
- f_c3kdenlive
|
||||
- f_c3mpv
|
||||
- f_c3check
|
||||
- f_wsladdhypervroute
|
||||
- f_wslenablehypervforwarding
|
||||
- f_wslshowhypervforwarding
|
||||
- f_config
|
||||
YOETUNHEIMR-wsl:
|
||||
dotfiles:
|
||||
- d_fonts
|
||||
- f_profile
|
||||
- f_vimrc
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_compton.conf
|
||||
- f_rofi_config
|
||||
- f_c3cp
|
||||
- f_mount_c3voc
|
||||
- f_c3l
|
||||
- f_c3kdenlive
|
||||
- f_c3mpv
|
||||
- f_c3check
|
||||
- f_zprofile
|
||||
- f_start_systemd_shell.sh
|
||||
- f_wsladdhypervroute
|
||||
- f_wslenablehypervforwarding
|
||||
- f_wslshowhypervforwarding
|
||||
- f_config
|
||||
ymir:
|
||||
dotfiles:
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_zprofile
|
||||
- d_fonts
|
||||
- f_profile
|
||||
- f_vimrc
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_c3cp
|
||||
- f_mount_c3voc
|
||||
- f_c3l
|
||||
- f_c3kdenlive
|
||||
- f_c3mpv
|
||||
- f_c3check
|
||||
- f_wsladdhypervroute
|
||||
- f_wslenablehypervforwarding
|
||||
- f_wslshowhypervforwarding
|
||||
- f_commonfunc
|
||||
- f_gpgagent
|
||||
- f_secretfiles
|
||||
- f_agenix_helper
|
||||
- f_config
|
||||
workspace:
|
||||
include:
|
||||
- os_ubuntu
|
||||
dotfiles:
|
||||
- d_fonts
|
||||
- f_profile
|
||||
- f_vimrc
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_zprofile
|
||||
- f_commonfunc
|
||||
- f_config
|
||||
WVDEWOBMC001307:
|
||||
include:
|
||||
- os_macos
|
||||
- meta_vw
|
||||
WVDEWOBMC002277:
|
||||
include:
|
||||
- os_macos
|
||||
- meta_vw
|
||||
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_pu
|
||||
- f_rpki
|
||||
- f_rmquarantine
|
||||
- f_commonfunc
|
||||
- f_secretfiles
|
||||
- f_agenix_helper
|
||||
- f_config
|
||||
|
|
|
@ -124,7 +124,7 @@ EOF
|
|||
fi
|
||||
}
|
||||
|
||||
{%@@ if distro == 'macos' @@%}
|
||||
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
|
||||
#######################################
|
||||
# Shows a netstat -tulpn styled output on mac.
|
||||
# Globals:
|
||||
|
@ -351,7 +351,7 @@ dotdrop() {
|
|||
{{@@ env['HOME'] @@}}/.local/bin/dotdrop --cfg={{@@ env['HOME'] @@}}/.files/config.yaml ${@}
|
||||
}
|
||||
|
||||
{%@@ endif @@%}{%@@ if vw == true @@%}
|
||||
{%@@ endif @@%}{%@@ if profile == 'WVDEWOBMC001307' @@%}
|
||||
setProxyEnv() {
|
||||
local HIGHLIGHT='\033[36;1m'
|
||||
local RESET='\033[0;0m'
|
||||
|
|
|
@ -7,7 +7,7 @@ Include {{@@ env['HOME'] @@}}/.colima/ssh_config
|
|||
Include config.d/*.config
|
||||
Include config.d/*/*.config
|
||||
|
||||
{%@@ if distro == 'macos' @@%}#
|
||||
{%@@ if profile == 'susanoo.local' or profile == 'WVDEWOBMC001307' @@%}#
|
||||
# This have to be LAST
|
||||
#
|
||||
Match host * exec "[[ -z $SSH_CLIENT && -z $SSH_TTY ]]"
|
||||
|
|
|
@ -9,26 +9,26 @@ export VISUAL
|
|||
EDITOR='vim'
|
||||
export EDITOR
|
||||
|
||||
{%@@ if distro == 'macos' @@%}
|
||||
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
|
||||
[[ $(command -v /opt/homebrew/bin/brew) ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
|
||||
# Added by Toolbox App
|
||||
export PATH="$PATH:{{@@ env['HOME'] @@}}/Library/Application Support/JetBrains/Toolbox/scripts"
|
||||
{%@@ endif @@%}
|
||||
|
||||
{%@@ if linux == true @@%}
|
||||
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' @@%}
|
||||
# Set DOTNET_ROOT enviroment variable
|
||||
DOTNET_ROOT=/opt/dotnet
|
||||
export DOTNET_ROOT
|
||||
|
||||
{%@@ endif @@%}
|
||||
{%@@ if linux == true @@%}
|
||||
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}
|
||||
# Set XDG_CONFIG_HOME
|
||||
XDG_CONFIG_HOME="{{@@ env['HOME'] @@}}/.config"
|
||||
export XDG_CONFIG_HOME
|
||||
|
||||
{%@@ endif @@%}
|
||||
{%@@ if wsl == true @@%}
|
||||
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}
|
||||
# Run VPN-Kit alpine VM to route traffic through Windows and if connected through VPNs
|
||||
wsl.exe -d wsl-vpnkit service wsl-vpnkit start
|
||||
{%@@ endif @@%}
|
||||
|
|
|
@ -11,13 +11,13 @@ export ANSIBLE_NOCOWS=1
|
|||
# Include ~/.local/bin to PATH
|
||||
[[ -d "{{@@ env['HOME'] @@}}/.local/bin" ]] && export PATH="{{@@ env['HOME'] @@}}/.local/bin:${PATH}"
|
||||
|
||||
{%@@ if distro == 'macos' @@%}# 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}"
|
||||
|
||||
{%@@ endif @@%}# Include $(go env GOPATH) to PATH
|
||||
[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}"
|
||||
|
||||
{%@@ if wsl == true @@%}
|
||||
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}
|
||||
# Connect to windows ssh pageant
|
||||
# https://github.com/BlackReloaded/wsl2-ssh-pageant
|
||||
export SSH_AUTH_SOCK={{@@ env['HOME'] @@}}/.ssh/agent.sock
|
||||
|
@ -43,7 +43,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 distro == 'macos' @@%}
|
||||
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
|
||||
export HOMEBREW_CASK_OPTS="--appdir=~/Applications"
|
||||
|
||||
{%@@ endif @@%}
|
||||
|
|
|
@ -105,11 +105,11 @@ plugins=(
|
|||
vscode
|
||||
zsh-navigation-tools
|
||||
zsh-ssh
|
||||
{%@@ if distro == 'macos' @@%} # Mac specifics
|
||||
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'ymir' or profile == 'susanoo.local' @@%} # Mac specifics
|
||||
brew
|
||||
iterm2
|
||||
macos
|
||||
{%@@ endif @@%}{%@@ if distro == 'arch' @@%} # Archlinux specifics
|
||||
{%@@ endif @@%}{%@@ if profile == 'yoetunheimr' or profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'ymir' @@%} # Archlinux specifics
|
||||
archlinux
|
||||
{%@@ endif @@%}
|
||||
)
|
||||
|
@ -157,7 +157,7 @@ source ${ZSH}/oh-my-zsh.sh
|
|||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
# [[ -f {{@@ env['HOME'] @@}}/.files/dotdrop.sh ]] && alias dotdrop='eval $(grep -v "^#" {{@@ env['HOME'] @@}}/.files/.env.public) {{@@ env['HOME'] @@}}/.files/dotdrop.sh' # Not required anymore since I now use
|
||||
[[ $(command -v thefuck) ]] && eval $(thefuck --alias)
|
||||
#{%@@ if linux == true @@%}
|
||||
#{%@@ if profile == 'AINCRAD-wsl' or profile == 'YOETUNHEIMR-wsl' or profile == 'ymir' @@%}
|
||||
# Use https://github.com/jgaa/shinysocks as simple socks5 proxy for windows
|
||||
#[[ $(command -v kubectl) ]] && alias proxy_kubectl="http_proxy=socks5://$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):1080 https_proxy=socks5://$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):1080 kubectl"
|
||||
#[[ $(command -v kubectl) ]] && alias pk='proxy_kubectl'
|
||||
|
@ -173,7 +173,7 @@ alias ssh-strongbox-keys="SSH_AUTH_SOCK=~/Library/Group\ Containers/group.strong
|
|||
# Include $(go env GOPATH) to PATH
|
||||
[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}"
|
||||
|
||||
{%@@ if distro == 'macos' @@%}
|
||||
{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.local' @@%}
|
||||
# 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"
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue