mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-06-28 12:19:09 +00:00
Add subdirectories for macbook
and tongfang
with config (#4)
This commit is contained in:
parent
b743abcde5
commit
10a876fcc4
15 changed files with 117 additions and 0 deletions
24
macbook/.gitconfig
Normal file
24
macbook/.gitconfig
Normal file
|
@ -0,0 +1,24 @@
|
|||
[user]
|
||||
name = Bart van der Braak
|
||||
email = bartvdbraak@gmail.com
|
||||
[alias]
|
||||
p = push
|
||||
st = status
|
||||
ll = log --oneline
|
||||
last = log -1 HEAD --stat
|
||||
cm = commit -m
|
||||
d = diff
|
||||
gl = config --global -l
|
||||
aa = add .
|
||||
pushfwl = push --force-with-lease
|
||||
[core]
|
||||
excludesfile = /Users/bart.vanderbraak/.gitignore_global
|
||||
[init]
|
||||
defaultBranch = master
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
1
macbook/.gitignore_global
Normal file
1
macbook/.gitignore_global
Normal file
|
@ -0,0 +1 @@
|
|||
.DS_Store
|
96
macbook/.zshrc
Normal file
96
macbook/.zshrc
Normal file
|
@ -0,0 +1,96 @@
|
|||
## Initialize completion
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
## Paths
|
||||
|
||||
PATH=$PATH:/usr/local/sbin
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
||||
### Added by Zinit's installer
|
||||
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
|
||||
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
|
||||
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
|
||||
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
|
||||
print -P "%F{33} %F{34}Installation successful.%f%b" || \
|
||||
print -P "%F{160} The clone has failed.%f%b"
|
||||
fi
|
||||
|
||||
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
## Zinit Plugins
|
||||
|
||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
||||
zinit load zdharma-continuum/history-search-multi-word
|
||||
zinit light zsh-users/zsh-history-substring-search
|
||||
zinit light sindresorhus/pure
|
||||
|
||||
### Autosuggestions
|
||||
|
||||
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=150
|
||||
zinit ice wait"0a" lucid atload"_zsh_autosuggest_start"
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
|
||||
### Enhancd
|
||||
|
||||
zinit ice wait"0b" lucid
|
||||
# zinit light b4b4r07/enhancd
|
||||
|
||||
## Tab Completion
|
||||
|
||||
zinit ice wait"0b" lucid blockf
|
||||
zinit light zsh-users/zsh-completions
|
||||
zstyle ':completion:*' completer _expand _complete _ignored _approximate
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||
zstyle ':completion:*' menu select=2
|
||||
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
|
||||
zstyle ':completion:*:descriptions' format '-- %d --'
|
||||
zstyle ':completion:*:processes' command 'ps -au$USER'
|
||||
zstyle ':completion:complete:*:options' sort false
|
||||
zstyle ':fzf-tab:complete:_zlua:*' query-string input
|
||||
zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm,cmd -w -w"
|
||||
zstyle ':fzf-tab:complete:kill:argument-rest' extra-opts --preview=$extract'ps --pid=$in[(w)1] -o cmd --no-headers -w -w' --preview-window=down:3:wrap
|
||||
zstyle ":completion:*:git-checkout:*" sort false
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
|
||||
### Neovim
|
||||
|
||||
zinit ice from"gh-r" as"program" bpick"*appimage*" ver"nightly" mv"nvim* -> nvim" pick"nvim"
|
||||
zinit light neovim/neovim
|
||||
|
||||
### Prettytyping
|
||||
|
||||
zinit ice lucid wait'' as"program" pick"prettyping" atload'alias ping=prettyping'
|
||||
zinit load "denilsonsa/prettyping"
|
||||
|
||||
# Personal Aliases
|
||||
|
||||
alias pub='cat ~/.ssh/id_rsa.pub | pbcopy'
|
||||
alias l='ls -CF'
|
||||
alias ll='ls -alhF'
|
||||
alias la='ls -A'
|
||||
alias ls='ls -G'
|
||||
alias grep='grep --colour=auto'
|
||||
alias gcp='git add . && git commit && git push'
|
||||
alias digs='dig +short'
|
||||
alias k='kubectl'
|
||||
alias kc='kubectl config use-context'
|
||||
alias cp='cp -iv' # Preferred 'cp' implementation
|
||||
alias mv='mv -iv' # Preferred 'mv' implementation
|
||||
alias openssl3='/usr/local/opt/openssl@3'
|
||||
compdef __start_kubectl k
|
||||
|
||||
# Terminal History
|
||||
|
||||
HISTSIZE=15000
|
||||
|
||||
# Kubernetes Autocompletions
|
||||
|
||||
source <(kubectl completion zsh)
|
||||
|
||||
# Python virtual environments
|
||||
|
||||
eval "$(pyenv init -)"
|
89
macbook/alacritty/alacritty.toml
Normal file
89
macbook/alacritty/alacritty.toml
Normal file
|
@ -0,0 +1,89 @@
|
|||
live_config_reload = true
|
||||
|
||||
[shell]
|
||||
program = "/bin/zsh"
|
||||
|
||||
[window]
|
||||
opacity = 0.99
|
||||
|
||||
decorations = "full"
|
||||
dynamic_title = true
|
||||
startup_mode = "Maximized"
|
||||
|
||||
[window.dimensions]
|
||||
columns = 160
|
||||
lines = 80
|
||||
|
||||
[window.padding]
|
||||
x = 6
|
||||
y = 6
|
||||
|
||||
[font]
|
||||
size = 20.0
|
||||
|
||||
[font.glyph_offset]
|
||||
x = 0
|
||||
y = 0
|
||||
|
||||
[font.normal]
|
||||
family = "UbuntuMono Nerd Font Mono"
|
||||
|
||||
[font.bold]
|
||||
family = "UbuntuMono Nerd Font Mono"
|
||||
style = "Bold"
|
||||
|
||||
[font.italic]
|
||||
family = "UbuntuMono Nerd Font Mono"
|
||||
style = "Italic"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "UbuntuMono Nerd Font Mono"
|
||||
style = "Bold Italic"
|
||||
|
||||
[bell]
|
||||
animation = "EaseOutExpo"
|
||||
duration = 0
|
||||
|
||||
[mouse]
|
||||
hide_when_typing = true
|
||||
|
||||
[[mouse.bindings]]
|
||||
action = "PasteSelection"
|
||||
mouse = "Middle"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Left"
|
||||
mods = "Alt"
|
||||
chars = "\u001BB"
|
||||
# Skip word left
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Right"
|
||||
mods = "Alt"
|
||||
chars = "\u001BF"
|
||||
# Skip word right
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Left"
|
||||
mods = "Command"
|
||||
chars = "\u001bOH"
|
||||
# Home
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Right"
|
||||
mods = "Command"
|
||||
chars = "\u001bOF"
|
||||
# End
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Back"
|
||||
mods = "Command"
|
||||
chars = "\u0015"
|
||||
# Delete line
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "Back"
|
||||
mods = "Alt"
|
||||
chars = "\u001b\u007f"
|
||||
# Delete word
|
||||
|
278
macbook/karabiner/karabiner.json
Normal file
278
macbook/karabiner/karabiner.json
Normal file
|
@ -0,0 +1,278 @@
|
|||
{
|
||||
"global": {
|
||||
"ask_for_confirmation_before_quitting": true,
|
||||
"check_for_updates_on_startup": true,
|
||||
"show_in_menu_bar": false,
|
||||
"show_profile_name_in_menu_bar": false,
|
||||
"unsafe_ui": false
|
||||
},
|
||||
"profiles": [
|
||||
{
|
||||
"complex_modifications": {
|
||||
"parameters": {
|
||||
"basic.simultaneous_threshold_milliseconds": 50,
|
||||
"basic.to_delayed_action_delay_milliseconds": 500,
|
||||
"basic.to_if_alone_timeout_milliseconds": 1000,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||
"mouse_motion_to_scroll.speed": 100
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"description": "FN + Space to F20",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "spacebar",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"fn"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "f20"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"devices": [
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": false,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 832,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 640,
|
||||
"vendor_id": 13364
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": false,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 45088,
|
||||
"vendor_id": 1133
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 34304,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 1552,
|
||||
"vendor_id": 13364
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
},
|
||||
{
|
||||
"disable_built_in_keyboard_if_exists": false,
|
||||
"fn_function_keys": [],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": false,
|
||||
"product_id": 1552,
|
||||
"vendor_id": 13364
|
||||
},
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"simple_modifications": [],
|
||||
"treat_as_built_in_keyboard": false
|
||||
}
|
||||
],
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f1"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f2"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "display_brightness_increment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f3"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "mission_control"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f4"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"apple_vendor_keyboard_key_code": "spotlight"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f5"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "dictation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f6"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "f6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f7"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "rewind"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f8"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "play_or_pause"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f9"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "fast_forward"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f10"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "mute"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f11"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_decrement"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f12"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"consumer_key_code": "volume_increment"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"parameters": {
|
||||
"delay_milliseconds_before_open_device": 1000
|
||||
},
|
||||
"selected": true,
|
||||
"simple_modifications": [],
|
||||
"virtual_hid_keyboard": {
|
||||
"country_code": 0,
|
||||
"indicate_sticky_modifier_keys_state": true,
|
||||
"mouse_key_xy_scale": 100
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
21
macbook/kitty/kitty-themes/themes/Argonaut.conf
Normal file
21
macbook/kitty/kitty-themes/themes/Argonaut.conf
Normal file
|
@ -0,0 +1,21 @@
|
|||
background #0d0f18
|
||||
foreground #fffaf3
|
||||
cursor #ff0017
|
||||
selection_background #002a3a
|
||||
color0 #222222
|
||||
color8 #444444
|
||||
color1 #ff000f
|
||||
color9 #ff273f
|
||||
color2 #8ce00a
|
||||
color10 #abe05a
|
||||
color3 #ffb900
|
||||
color11 #ffd141
|
||||
color4 #008df8
|
||||
color12 #0092ff
|
||||
color5 #6c43a5
|
||||
color13 #9a5feb
|
||||
color6 #00d7eb
|
||||
color14 #67ffef
|
||||
color7 #ffffff
|
||||
color15 #ffffff
|
||||
selection_foreground #0d0f18
|
2509
macbook/kitty/kitty.conf
Normal file
2509
macbook/kitty/kitty.conf
Normal file
File diff suppressed because it is too large
Load diff
71
macbook/oh-my-posh/theme.json
Normal file
71
macbook/oh-my-posh/theme.json
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"style": "plain",
|
||||
"template": "<#C591E8>\u276f</><#69FF94>\u276f</> ",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"foreground": "#56B6C2",
|
||||
"properties": {
|
||||
"style": "folder"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "#D0666F",
|
||||
"properties": {
|
||||
"branch_icon": ""
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "<#5FAAE8>git:(</>{{ .HEAD }}<#5FAAE8>)</>",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"foreground": "#DCB977",
|
||||
"style": "plain",
|
||||
"template": " \uf119 ",
|
||||
"type": "status"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "right",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"properties": {
|
||||
"command": "git log --pretty=format:%cr -1 || date +%H:%M:%S",
|
||||
"shell": "bash"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " {{ .Output }} ",
|
||||
"type": "command"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"style": "plain",
|
||||
"template": "\uf441 ",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"version": 2
|
||||
}
|
86
macbook/oh-my-posh/theme.toml
Normal file
86
macbook/oh-my-posh/theme.toml
Normal file
|
@ -0,0 +1,86 @@
|
|||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||
|
||||
version = 2
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
template = '<#C591E8>❯</><#69FF94>❯</> '
|
||||
background = ''
|
||||
foreground = '#ffffff'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
template = '{{ .Path }} '
|
||||
background = ''
|
||||
foreground = '#56B6C2'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'folder'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
template = '<#5FAAE8>git:(</>{{ .HEAD }}<#5FAAE8>)</>'
|
||||
background = ''
|
||||
foreground = '#D0666F'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ''
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'status'
|
||||
style = 'plain'
|
||||
template = ' '
|
||||
background = ''
|
||||
foreground = '#DCB977'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'right'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'command'
|
||||
style = 'plain'
|
||||
template = ' {{ .Output }} '
|
||||
background = ''
|
||||
foreground = '#ffffff'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
||||
|
||||
[blocks.segments.properties]
|
||||
command = 'git log --pretty=format:%cr -1 || date +%H:%M:%S'
|
||||
shell = 'bash'
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
newline = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
template = ' '
|
||||
background = ''
|
||||
foreground = '#ffffff'
|
||||
Text = ''
|
||||
Duration = 0
|
||||
NameLength = 0
|
Loading…
Add table
Add a link
Reference in a new issue