mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-02 16:48:12 +00:00
Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0495ac1ea8 | ||
| 9b5d372a74 | |||
| 9d04343a26 | |||
|
|
4aa0fba682 | ||
| ad6482b34a | |||
| 113e27734a | |||
| 378abfe896 | |||
| eadf1e5c84 | |||
| ea4d185fb4 | |||
| 22bd8ca870 | |||
| 7ee81b005c | |||
| 3faf8224e8 | |||
| d028f37c00 | |||
| 1df05ac0ba | |||
| e54e202281 | |||
| c226943aa9 | |||
| dda4b65458 | |||
| 7d564d0b4d | |||
| bc30e5f7a6 | |||
| 9e2f7e8f1b | |||
| 7b47e49804 | |||
| 1be7649122 | |||
| 453d54bc7f | |||
| 7ede7b9ac1 | |||
| a90743a09c | |||
| 185d28e587 | |||
|
|
37f023351d | ||
| 39523e9234 | |||
|
|
1f8fc0d289 | ||
| c083d2a20a | |||
| 75c6a0bccd | |||
| 5ce86b3229 | |||
| 885189e4ff | |||
| 8f3f4d7ed9 | |||
| 03a1b5fb85 | |||
| 7b83f6e943 | |||
| 261ff41e28 | |||
| 36ad2a2ad9 |
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -58,3 +58,9 @@
|
|||||||
[submodule "cheat-tldr"]
|
[submodule "cheat-tldr"]
|
||||||
path = config/cheat/cheatsheets/tldr
|
path = config/cheat/cheatsheets/tldr
|
||||||
url = https://github.com/ivuorinen/cheatsheet-tldr.git
|
url = https://github.com/ivuorinen/cheatsheet-tldr.git
|
||||||
|
[submodule "nvim-kickstart"]
|
||||||
|
path = config/nvim-kickstart
|
||||||
|
url = https://github.com/ivuorinen/kickstart.nvim
|
||||||
|
[submodule "tmux/tmux-dark-notify"]
|
||||||
|
path = config/tmux/plugins/tmux-dark-notify
|
||||||
|
url = https://github.com/erikw/tmux-dark-notify.git
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ git submodule add --name dotbot-include \
|
|||||||
git submodule add --name dotbot-pip \
|
git submodule add --name dotbot-pip \
|
||||||
-f https://github.com/sobolevn/dotbot-pip.git tools/dotbot-pip
|
-f https://github.com/sobolevn/dotbot-pip.git tools/dotbot-pip
|
||||||
|
|
||||||
|
git submodule add --name nvim-kickstart \
|
||||||
|
-f https://github.com/ivuorinen/kickstart.nvim config/nvim-kickstart
|
||||||
|
|
||||||
# other repos
|
# other repos
|
||||||
git submodule add --name cheat-community \
|
git submodule add --name cheat-community \
|
||||||
-f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
-f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
||||||
@@ -35,6 +38,8 @@ git submodule add --name tmux/tmux-yank \
|
|||||||
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
|
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
|
||||||
git submodule add --name tmux/tmux-current-pane-hostname \
|
git submodule add --name tmux/tmux-current-pane-hostname \
|
||||||
-f https://github.com/soyuka/tmux-current-pane-hostname.git config/tmux/plugins/tmux-current-pane-hostname
|
-f https://github.com/soyuka/tmux-current-pane-hostname.git config/tmux/plugins/tmux-current-pane-hostname
|
||||||
|
git submodule add --name tmux/tmux-dark-notify \
|
||||||
|
-f https://github.com/erikw/tmux-dark-notify.git config/tmux/plugins/tmux-dark-notify
|
||||||
|
|
||||||
# Takes submodules and sets them to ignore all changes
|
# Takes submodules and sets them to ignore all changes
|
||||||
for MODULE in $(git config --file .gitmodules --get-regexp path | awk '{ print $2 }'); do
|
for MODULE in $(git config --file .gitmodules --get-regexp path | awk '{ print $2 }'); do
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/env bash
|
#!/bin/env bash
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.config/nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
|
|||||||
@@ -17,3 +17,5 @@ export XDG_CACHE_HOME="$HOME/.cache"
|
|||||||
export XDG_RUNTIME_DIR="$HOME/.local/run"
|
export XDG_RUNTIME_DIR="$HOME/.local/run"
|
||||||
|
|
||||||
source "$DOTFILES/config/exports"
|
source "$DOTFILES/config/exports"
|
||||||
|
source "$DOTFILES/config/alias"
|
||||||
|
|
||||||
|
|||||||
14
base/zshrc
14
base/zshrc
@@ -61,17 +61,11 @@ antigen bundle jreese/zsh-titles
|
|||||||
antigen bundle zsh-users/zsh-completions
|
antigen bundle zsh-users/zsh-completions
|
||||||
|
|
||||||
# these should be available if there's need
|
# these should be available if there's need
|
||||||
# x-have brew && antigen bundle brew
|
|
||||||
# x-have php && antigen bundle php
|
|
||||||
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
|
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
|
||||||
|
|
||||||
# nvm is a strange beast
|
# nvm is a strange beast
|
||||||
zstyle ':omz:plugins:nvm' autoload yes
|
zstyle ':omz:plugins:nvm' autoload yes
|
||||||
antigen bundle nvm
|
antigen bundle nvm
|
||||||
# antigen bundle "$DOTFILES/config/zsh/plugins/nvm-auto-use"
|
|
||||||
|
|
||||||
# nice to have stuff
|
|
||||||
# antigen bundle gcloud
|
|
||||||
|
|
||||||
# this needs to be the last item
|
# this needs to be the last item
|
||||||
antigen bundle zsh-users/zsh-syntax-highlighting
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
||||||
@@ -110,3 +104,11 @@ x-have oh-my-posh && {
|
|||||||
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)"
|
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)"
|
||||||
}
|
}
|
||||||
source "$DOTFILES/config/alias"
|
source "$DOTFILES/config/alias"
|
||||||
|
|
||||||
|
# Herd checks for a few environment variables to inject PHP binaries and configurations.
|
||||||
|
# Herd injected PHP binary.
|
||||||
|
# export PATH="/Users/ivuorinen/Library/Application Support/Herd/bin/":$PATH
|
||||||
|
# Herd injected PHP 8.3 configuration.
|
||||||
|
# export HERD_PHP_83_INI_SCAN_DIR="/Users/ivuorinen/Library/Application Support/Herd/config/php/83/"
|
||||||
|
# Herd injected PHP 7.4 configuration.
|
||||||
|
# export HERD_PHP_74_INI_SCAN_DIR="/Users/ivuorinen/Library/Application Support/Herd/config/php/74/"
|
||||||
|
|||||||
@@ -324,21 +324,26 @@ chars = "\u0002/"
|
|||||||
key = "F"
|
key = "F"
|
||||||
mods = "Command"
|
mods = "Command"
|
||||||
|
|
||||||
|
[mouse]
|
||||||
|
hide_when_typing = false
|
||||||
|
|
||||||
[[mouse.bindings]]
|
[[mouse.bindings]]
|
||||||
action = "PasteSelection"
|
action = "PasteSelection"
|
||||||
mouse = "Middle"
|
mouse = "Middle"
|
||||||
|
|
||||||
[selection]
|
[selection]
|
||||||
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
|
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
|
||||||
|
save_to_clipboard = true
|
||||||
|
|
||||||
[window]
|
[window]
|
||||||
decorations = "none"
|
decorations = "Full"
|
||||||
dynamic_title = true
|
dynamic_title = true
|
||||||
opacity = 0.98
|
opacity = 0.98
|
||||||
|
blur = true
|
||||||
|
|
||||||
[window.dimensions]
|
[window.dimensions]
|
||||||
columns = 200
|
columns = 200
|
||||||
lines = 100
|
lines = 75
|
||||||
|
|
||||||
[window.padding]
|
[window.padding]
|
||||||
x = 5
|
x = 5
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ alias tmux='tmux new-session -A -s main'
|
|||||||
# tmux: attach or create new session
|
# tmux: attach or create new session
|
||||||
alias ta='tmux attach || tmux'
|
alias ta='tmux attach || tmux'
|
||||||
|
|
||||||
|
# nvim
|
||||||
|
alias nvim-ks='NVIM_APPNAME="nvim-kickstart" nvim'
|
||||||
|
alias ks='NVIM_APPNAME="nvim-kickstart" nvim'
|
||||||
|
|
||||||
# watch with: differences, precise, beep and color
|
# watch with: differences, precise, beep and color
|
||||||
alias watchx='watch -dpbc'
|
alias watchx='watch -dpbc'
|
||||||
# delete .DS_Store files
|
# delete .DS_Store files
|
||||||
@@ -99,7 +103,8 @@ if [[ $(uname) == 'Darwin' ]]; then
|
|||||||
# Also, clear Apple's System Logs to improve shell startup speed
|
# Also, clear Apple's System Logs to improve shell startup speed
|
||||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||||
|
|
||||||
x-set-php-aliases
|
# Using herd for php now, so this is not needed anymore
|
||||||
|
# x-set-php-aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Alacritty preexec hook to update dynamic title
|
# Alacritty preexec hook to update dynamic title
|
||||||
|
|||||||
@@ -52,5 +52,9 @@ have_brew()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [[ -f "$DOTFILES/config/exports-secret" ]]; then
|
||||||
|
source "$DOTFILES/config/exports-secret"
|
||||||
|
fi
|
||||||
|
|
||||||
source "$DOTFILES/config/exports-shell"
|
source "$DOTFILES/config/exports-shell"
|
||||||
source "$DOTFILES/config/exports-apps"
|
source "$DOTFILES/config/exports-apps"
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ export BKT_TTL=1m
|
|||||||
|
|
||||||
# brew, https://docs.brew.sh/Manpage
|
# brew, https://docs.brew.sh/Manpage
|
||||||
export HOMEBREW_NO_ENV_HINTS=true
|
export HOMEBREW_NO_ENV_HINTS=true
|
||||||
|
export HOMEBREW_BUNDLE_MAS_SKIP=true
|
||||||
|
export HOMEBREW_BUNDLE_FILE="$XDG_CONFIG_HOME/homebrew/Brewfile"
|
||||||
|
|
||||||
# composer, https://getcomposer.org/
|
# composer, https://getcomposer.org/
|
||||||
export COMPOSER_HOME="$XDG_STATE_HOME/composer"
|
export COMPOSER_HOME="$XDG_STATE_HOME/composer"
|
||||||
@@ -52,6 +54,17 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
|||||||
export GOPATH="$XDG_DATA_HOME/go"
|
export GOPATH="$XDG_DATA_HOME/go"
|
||||||
export GOBIN="$XDG_BIN_HOME"
|
export GOBIN="$XDG_BIN_HOME"
|
||||||
|
|
||||||
|
# Herd, herd.laravel.com
|
||||||
|
# Herd injected PHP binary.
|
||||||
|
export PATH="$HOME/Library/Application Support/Herd/bin/":$PATH
|
||||||
|
|
||||||
|
x-have herd && {
|
||||||
|
# Herd injected PHP 8.3 configuration.
|
||||||
|
export HERD_PHP_83_INI_SCAN_DIR="$HOME/Library/Application Support/Herd/config/php/83/"
|
||||||
|
# Herd injected PHP 7.4 configuration.
|
||||||
|
export HERD_PHP_74_INI_SCAN_DIR="$HOME/Library/Application Support/Herd/config/php/74/"
|
||||||
|
}
|
||||||
|
|
||||||
# nb, https://xwmx.github.io/nb/
|
# nb, https://xwmx.github.io/nb/
|
||||||
export NBRC_PATH="$XDG_CONFIG_HOME/nbrc"
|
export NBRC_PATH="$XDG_CONFIG_HOME/nbrc"
|
||||||
export NB_DIR="$XDG_STATE_HOME/nb"
|
export NB_DIR="$XDG_STATE_HOME/nb"
|
||||||
@@ -70,8 +83,8 @@ export OP_CACHE="$XDG_STATE_HOME/1password"
|
|||||||
# pyenv, python environments
|
# pyenv, python environments
|
||||||
export WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
|
export WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
|
||||||
export PYENV_ROOT="$XDG_STATE_HOME/pyenv"
|
export PYENV_ROOT="$XDG_STATE_HOME/pyenv"
|
||||||
|
export PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
|
||||||
x-have pyenv && {
|
x-have pyenv && {
|
||||||
export PATH="$PYENV_ROOT/shims:$PATH"
|
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,27 @@
|
|||||||
tap "1password/tap"
|
tap "1password/tap"
|
||||||
tap "anchore/grype"
|
tap "anchore/grype"
|
||||||
|
tap "cormacrelf/tap"
|
||||||
tap "ddosify/tap"
|
tap "ddosify/tap"
|
||||||
tap "dm3ch/tap"
|
tap "dm3ch/tap"
|
||||||
tap "gesquive/tap"
|
tap "gesquive/tap"
|
||||||
tap "github/gh"
|
tap "github/gh"
|
||||||
tap "homebrew/autoupdate"
|
tap "homebrew/autoupdate"
|
||||||
tap "homebrew/bundle"
|
tap "homebrew/bundle"
|
||||||
tap "homebrew/cask"
|
|
||||||
tap "homebrew/cask-fonts"
|
tap "homebrew/cask-fonts"
|
||||||
tap "homebrew/core"
|
|
||||||
tap "homebrew/services"
|
tap "homebrew/services"
|
||||||
tap "jesseduffield/lazygit"
|
tap "jesseduffield/lazygit"
|
||||||
|
tap "k8sgpt-ai/k8sgpt"
|
||||||
tap "keith/formulae"
|
tap "keith/formulae"
|
||||||
tap "mongodb/brew"
|
tap "mongodb/brew"
|
||||||
|
tap "reviewdog/tap"
|
||||||
tap "shivammathur/extensions"
|
tap "shivammathur/extensions"
|
||||||
tap "shivammathur/php"
|
tap "shivammathur/php"
|
||||||
tap "teamookla/speedtest"
|
tap "teamookla/speedtest"
|
||||||
tap "xwmx/taps"
|
tap "xwmx/taps"
|
||||||
|
# Run your GitHub Actions locally
|
||||||
|
brew "act"
|
||||||
|
# Simple, modern, secure file encryption
|
||||||
|
brew "age"
|
||||||
# Generic-purpose lossless compression algorithm by Google
|
# Generic-purpose lossless compression algorithm by Google
|
||||||
brew "brotli"
|
brew "brotli"
|
||||||
# Library and utilities for processing GIFs
|
# Library and utilities for processing GIFs
|
||||||
@@ -43,8 +48,6 @@ brew "openssl@3"
|
|||||||
brew "apr-util"
|
brew "apr-util"
|
||||||
# Password hashing library and CLI utility
|
# Password hashing library and CLI utility
|
||||||
brew "argon2"
|
brew "argon2"
|
||||||
# Open Source Kubernetes Marketplace
|
|
||||||
brew "arkade"
|
|
||||||
# Spell checker with better logic than ispell
|
# Spell checker with better logic than ispell
|
||||||
brew "aspell"
|
brew "aspell"
|
||||||
# Automatic configure script builder
|
# Automatic configure script builder
|
||||||
@@ -53,8 +56,6 @@ brew "autoconf"
|
|||||||
brew "bash"
|
brew "bash"
|
||||||
# Clone of cat(1) with syntax highlighting and Git integration
|
# Clone of cat(1) with syntax highlighting and Git integration
|
||||||
brew "bat"
|
brew "bat"
|
||||||
# C/C++ and Java libraries for Unicode and globalization
|
|
||||||
brew "icu4c"
|
|
||||||
# Yet another cross-platform graphical process/system monitor
|
# Yet another cross-platform graphical process/system monitor
|
||||||
brew "bottom"
|
brew "bottom"
|
||||||
# Software library to render fonts
|
# Software library to render fonts
|
||||||
@@ -65,6 +66,8 @@ brew "fontconfig"
|
|||||||
brew "gettext"
|
brew "gettext"
|
||||||
# Core application library for C
|
# Core application library for C
|
||||||
brew "glib"
|
brew "glib"
|
||||||
|
# Mozilla CA bundle for Python
|
||||||
|
brew "certifi"
|
||||||
# Human-friendly and fast alternative to cut and (sometimes) awk
|
# Human-friendly and fast alternative to cut and (sometimes) awk
|
||||||
brew "choose-rust"
|
brew "choose-rust"
|
||||||
# Cross-platform make
|
# Cross-platform make
|
||||||
@@ -73,8 +76,8 @@ brew "cmake"
|
|||||||
brew "gmp"
|
brew "gmp"
|
||||||
# GNU File, Shell, and Text utilities
|
# GNU File, Shell, and Text utilities
|
||||||
brew "coreutils"
|
brew "coreutils"
|
||||||
# Get, unpack, build, and install modules from CPAN
|
# Cryptographic recipes and primitives for Python
|
||||||
brew "cpanminus"
|
brew "cryptography"
|
||||||
# Open source suite of directory software
|
# Open source suite of directory software
|
||||||
brew "openldap"
|
brew "openldap"
|
||||||
# Get a file from an HTTP, HTTPS or FTP server
|
# Get a file from an HTTP, HTTPS or FTP server
|
||||||
@@ -129,6 +132,8 @@ brew "gpgme"
|
|||||||
brew "gpg-tui"
|
brew "gpg-tui"
|
||||||
# Image manipulation
|
# Image manipulation
|
||||||
brew "netpbm"
|
brew "netpbm"
|
||||||
|
# C/C++ and Java libraries for Unicode and globalization
|
||||||
|
brew "icu4c"
|
||||||
# OpenType text shaping engine
|
# OpenType text shaping engine
|
||||||
brew "harfbuzz"
|
brew "harfbuzz"
|
||||||
# Framework for layout and rendering of i18n text
|
# Framework for layout and rendering of i18n text
|
||||||
@@ -145,6 +150,8 @@ brew "gzip"
|
|||||||
brew "hadolint"
|
brew "hadolint"
|
||||||
# Improved top (interactive process viewer)
|
# Improved top (interactive process viewer)
|
||||||
brew "htop"
|
brew "htop"
|
||||||
|
# Portable abstraction of the hierarchical topology of modern architectures
|
||||||
|
brew "hwloc"
|
||||||
# ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
|
# ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
|
||||||
brew "libheif"
|
brew "libheif"
|
||||||
# Tools and libraries to manipulate images in many formats
|
# Tools and libraries to manipulate images in many formats
|
||||||
@@ -153,18 +160,20 @@ brew "imagemagick"
|
|||||||
brew "irssi"
|
brew "irssi"
|
||||||
# Lightweight and flexible command-line JSON processor
|
# Lightweight and flexible command-line JSON processor
|
||||||
brew "jq"
|
brew "jq"
|
||||||
|
# Scanning your k8s clusters, diagnosing, and triaging issues in simple English
|
||||||
|
brew "k8sgpt"
|
||||||
# Network authentication protocol
|
# Network authentication protocol
|
||||||
brew "krb5"
|
brew "krb5"
|
||||||
# Tool to detect/remediate misconfig and security risks of GitHub/GitLab assets
|
# Tool to detect/remediate misconfig and security risks of GitHub/GitLab assets
|
||||||
brew "legitify"
|
brew "legitify"
|
||||||
|
# Secure hashing function
|
||||||
|
brew "libb2"
|
||||||
# Postgres C API library
|
# Postgres C API library
|
||||||
brew "libpq"
|
brew "libpq"
|
||||||
# Manage compile and link flags for libraries
|
# Multi-platform support library with a focus on asynchronous I/O
|
||||||
brew "pkg-config"
|
brew "libuv"
|
||||||
# YAML Parser
|
# YAML Parser
|
||||||
brew "libyaml"
|
brew "libyaml"
|
||||||
# Interpreted, interactive, object-oriented programming language
|
|
||||||
brew "python@3.11"
|
|
||||||
# Package manager for the Lua programming language
|
# Package manager for the Lua programming language
|
||||||
brew "luarocks"
|
brew "luarocks"
|
||||||
# LZMA-based compression program similar to gzip or bzip2
|
# LZMA-based compression program similar to gzip or bzip2
|
||||||
@@ -175,22 +184,14 @@ brew "m-cli"
|
|||||||
brew "mutt"
|
brew "mutt"
|
||||||
# NCurses Disk Usage
|
# NCurses Disk Usage
|
||||||
brew "ncdu"
|
brew "ncdu"
|
||||||
# Ambitious Vim-fork focused on extensibility and agility
|
|
||||||
brew "neovim"
|
|
||||||
# HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
|
# HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
|
||||||
brew "nginx"
|
brew "nginx"
|
||||||
# Port scanning utility for large networks
|
# Port scanning utility for large networks
|
||||||
brew "nmap"
|
brew "nmap"
|
||||||
# Manage multiple Node.js versions
|
# General-purpose scripting language
|
||||||
brew "nvm"
|
brew "php"
|
||||||
# Development kit for the Java programming language
|
# Manage compile and link flags for libraries
|
||||||
brew "openjdk@11"
|
brew "pkg-config"
|
||||||
# Generate clients, server & docs from an OpenAPI spec (v2, v3)
|
|
||||||
brew "openapi-generator"
|
|
||||||
# Development kit for the Java programming language
|
|
||||||
brew "openjdk"
|
|
||||||
# Highly capable, feature-rich programming language
|
|
||||||
brew "perl"
|
|
||||||
# Coreutils progress viewer
|
# Coreutils progress viewer
|
||||||
brew "progress"
|
brew "progress"
|
||||||
# Python version management
|
# Python version management
|
||||||
@@ -199,10 +200,12 @@ brew "pyenv"
|
|||||||
brew "pyenv-pip-migrate"
|
brew "pyenv-pip-migrate"
|
||||||
# Pyenv plugin to manage virtualenv
|
# Pyenv plugin to manage virtualenv
|
||||||
brew "pyenv-virtualenv"
|
brew "pyenv-virtualenv"
|
||||||
|
# Interpreted, interactive, object-oriented programming language
|
||||||
|
brew "python@3.11"
|
||||||
|
# Install various Ruby versions and implementations
|
||||||
|
brew "ruby-build"
|
||||||
# Ruby version manager
|
# Ruby version manager
|
||||||
brew "rbenv"
|
brew "rbenv"
|
||||||
# RC file (dotfile) management
|
|
||||||
brew "rcm"
|
|
||||||
# Search tool like grep and The Silver Searcher
|
# Search tool like grep and The Silver Searcher
|
||||||
brew "ripgrep"
|
brew "ripgrep"
|
||||||
# Safe, concurrent, practical language
|
# Safe, concurrent, practical language
|
||||||
@@ -215,8 +218,6 @@ brew "shfmt"
|
|||||||
brew "task"
|
brew "task"
|
||||||
# Terminal user interface for taskwarrior
|
# Terminal user interface for taskwarrior
|
||||||
brew "taskwarrior-tui"
|
brew "taskwarrior-tui"
|
||||||
# Very fast implementation of tldr in Rust
|
|
||||||
brew "tealdeer"
|
|
||||||
# Send macOS User Notifications from the command-line
|
# Send macOS User Notifications from the command-line
|
||||||
brew "terminal-notifier"
|
brew "terminal-notifier"
|
||||||
# Thin wrapper for Terraform e.g. for locking state
|
# Thin wrapper for Terraform e.g. for locking state
|
||||||
@@ -243,45 +244,19 @@ brew "watch"
|
|||||||
brew "wget"
|
brew "wget"
|
||||||
# Check your $HOME for unwanted files and directories
|
# Check your $HOME for unwanted files and directories
|
||||||
brew "xdg-ninja", args: ["HEAD"]
|
brew "xdg-ninja", args: ["HEAD"]
|
||||||
# Hackable, minimal, fast TUI file explorer
|
|
||||||
brew "xplr"
|
|
||||||
# JavaScript package manager
|
# JavaScript package manager
|
||||||
brew "yarn"
|
brew "yarn"
|
||||||
# High-performance load testing tool, written in Golang.
|
# Watcher for macOS 10.14+ light/dark mode changes
|
||||||
brew "ddosify/tap/ddosify"
|
brew "cormacrelf/tap/dark-notify"
|
||||||
# lets you quickly switch between multiple git user profiles
|
# lets you quickly switch between multiple git user profiles
|
||||||
brew "gesquive/tap/git-user"
|
brew "gesquive/tap/git-user"
|
||||||
brew "keith/formulae/reminders-cli"
|
brew "keith/formulae/reminders-cli"
|
||||||
# Imagick PHP extension
|
# Automated code review tool integrated with any code analysis tools regardless of programming language.
|
||||||
brew "shivammathur/extensions/imagick@8.2"
|
brew "reviewdog/tap/reviewdog"
|
||||||
# Imagick PHP extension
|
|
||||||
brew "shivammathur/extensions/imagick@8.3"
|
|
||||||
# Mcrypt PHP extension
|
|
||||||
brew "shivammathur/extensions/mcrypt@8.3"
|
|
||||||
# PCOV PHP extension
|
|
||||||
brew "shivammathur/extensions/pcov@8.3"
|
|
||||||
# Redis PHP extension
|
|
||||||
brew "shivammathur/extensions/redis@8.3"
|
|
||||||
# Uuid PHP extension
|
|
||||||
brew "shivammathur/extensions/uuid@8.3"
|
|
||||||
# Xdebug PHP extension
|
|
||||||
brew "shivammathur/extensions/xdebug@7.4"
|
|
||||||
# Xdebug PHP extension
|
|
||||||
brew "shivammathur/extensions/xdebug@8.0"
|
|
||||||
# Xdebug PHP extension
|
|
||||||
brew "shivammathur/extensions/xdebug@8.1"
|
|
||||||
# Yaml PHP extension
|
|
||||||
brew "shivammathur/extensions/yaml@8.3"
|
|
||||||
# General-purpose scripting language
|
|
||||||
brew "shivammathur/php/php"
|
|
||||||
# Command-line interface for 1Password
|
# Command-line interface for 1Password
|
||||||
cask "1password-cli"
|
cask "1password-cli"
|
||||||
# GPU-accelerated terminal emulator
|
# GPU-accelerated terminal emulator
|
||||||
cask "alacritty"
|
cask "alacritty"
|
||||||
# Automatic tiling window manager similar to xmonad
|
|
||||||
cask "amethyst"
|
|
||||||
# Turn audio CDs and files into audiobooks
|
|
||||||
cask "audiobook-builder"
|
|
||||||
# Text editor
|
# Text editor
|
||||||
cask "coda"
|
cask "coda"
|
||||||
# Universal database tool and SQL client
|
# Universal database tool and SQL client
|
||||||
@@ -290,8 +265,6 @@ cask "dbeaver-community"
|
|||||||
cask "dbngin"
|
cask "dbngin"
|
||||||
# App to build and share containerised applications and microservices
|
# App to build and share containerised applications and microservices
|
||||||
cask "docker"
|
cask "docker"
|
||||||
# UI toolkit for building applications for mobile, web and desktop
|
|
||||||
cask "flutter"
|
|
||||||
# Unofficial overcast.fm podcast app
|
# Unofficial overcast.fm podcast app
|
||||||
cask "fog"
|
cask "fog"
|
||||||
# Typeface made for developers
|
# Typeface made for developers
|
||||||
@@ -344,12 +317,6 @@ cask "quicklookase"
|
|||||||
cask "quitter"
|
cask "quitter"
|
||||||
# Control your tools with a few keystrokes
|
# Control your tools with a few keystrokes
|
||||||
cask "raycast"
|
cask "raycast"
|
||||||
# Move and resize windows using keyboard shortcuts or snap areas
|
|
||||||
cask "rectangle"
|
|
||||||
# GUI for rsync
|
|
||||||
cask "rsyncosx"
|
|
||||||
# GUI for rsync
|
|
||||||
cask "rsyncui"
|
|
||||||
# MySQL/MariaDB database management
|
# MySQL/MariaDB database management
|
||||||
cask "sequel-ace"
|
cask "sequel-ace"
|
||||||
# Plugin for AWS CLI to start and end sessions that connect to managed instances
|
# Plugin for AWS CLI to start and end sessions that connect to managed instances
|
||||||
@@ -364,13 +331,13 @@ cask "soundsource"
|
|||||||
cask "suspicious-package"
|
cask "suspicious-package"
|
||||||
# Quicklook extension for source files
|
# Quicklook extension for source files
|
||||||
cask "syntax-highlight"
|
cask "syntax-highlight"
|
||||||
|
# Configuration application for the Ultimate Hacking Keyboard
|
||||||
|
cask "uhk-agent"
|
||||||
# Open-source code editor
|
# Open-source code editor
|
||||||
cask "visual-studio-code"
|
cask "visual-studio-code"
|
||||||
# Multimedia player
|
# Multimedia player
|
||||||
cask "vlc"
|
cask "vlc"
|
||||||
# Spell-checking service for Finnish
|
# Spell-checking service for Finnish
|
||||||
cask "voikkospellservice"
|
cask "voikkospellservice"
|
||||||
# Rust-based terminal
|
|
||||||
cask "warp"
|
|
||||||
# Application for generating TOTP and HOTP codes
|
# Application for generating TOTP and HOTP codes
|
||||||
cask "yubico-authenticator"
|
cask "yubico-authenticator"
|
||||||
|
|||||||
1
config/nvim-kickstart
Submodule
1
config/nvim-kickstart
Submodule
Submodule config/nvim-kickstart added at c041351f27
@@ -3,27 +3,33 @@
|
|||||||
"lazyvim.plugins.extras.coding.copilot",
|
"lazyvim.plugins.extras.coding.copilot",
|
||||||
"lazyvim.plugins.extras.coding.yanky",
|
"lazyvim.plugins.extras.coding.yanky",
|
||||||
"lazyvim.plugins.extras.editor.aerial",
|
"lazyvim.plugins.extras.editor.aerial",
|
||||||
|
"lazyvim.plugins.extras.editor.aerial",
|
||||||
|
"lazyvim.plugins.extras.editor.harpoon2",
|
||||||
"lazyvim.plugins.extras.editor.leap",
|
"lazyvim.plugins.extras.editor.leap",
|
||||||
"lazyvim.plugins.extras.editor.symbols-outline",
|
"lazyvim.plugins.extras.editor.outline",
|
||||||
|
"lazyvim.plugins.extras.editor.refactoring",
|
||||||
"lazyvim.plugins.extras.formatting.black",
|
"lazyvim.plugins.extras.formatting.black",
|
||||||
"lazyvim.plugins.extras.formatting.prettier",
|
"lazyvim.plugins.extras.formatting.prettier",
|
||||||
|
"lazyvim.plugins.extras.lang.ansible",
|
||||||
"lazyvim.plugins.extras.lang.docker",
|
"lazyvim.plugins.extras.lang.docker",
|
||||||
"lazyvim.plugins.extras.lang.go",
|
"lazyvim.plugins.extras.lang.go",
|
||||||
"lazyvim.plugins.extras.lang.json",
|
"lazyvim.plugins.extras.lang.json",
|
||||||
"lazyvim.plugins.extras.lang.markdown",
|
"lazyvim.plugins.extras.lang.markdown",
|
||||||
|
"lazyvim.plugins.extras.lang.php",
|
||||||
"lazyvim.plugins.extras.lang.python",
|
"lazyvim.plugins.extras.lang.python",
|
||||||
"lazyvim.plugins.extras.lang.tailwind",
|
"lazyvim.plugins.extras.lang.tailwind",
|
||||||
"lazyvim.plugins.extras.lang.terraform",
|
"lazyvim.plugins.extras.lang.terraform",
|
||||||
"lazyvim.plugins.extras.lang.typescript",
|
"lazyvim.plugins.extras.lang.typescript",
|
||||||
|
"lazyvim.plugins.extras.lang.vue",
|
||||||
"lazyvim.plugins.extras.lang.yaml",
|
"lazyvim.plugins.extras.lang.yaml",
|
||||||
"lazyvim.plugins.extras.linting.eslint",
|
"lazyvim.plugins.extras.linting.eslint",
|
||||||
"lazyvim.plugins.extras.ui.edgy",
|
"lazyvim.plugins.extras.ui.edgy",
|
||||||
"lazyvim.plugins.extras.ui.mini-animate",
|
"lazyvim.plugins.extras.ui.mini-animate",
|
||||||
"lazyvim.plugins.extras.util.dot",
|
"lazyvim.plugins.extras.util.dot",
|
||||||
"lazyvim.plugins.extras.vscode"
|
"lazyvim.plugins.extras.util.mini-hipatterns"
|
||||||
],
|
],
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "2123"
|
"NEWS.md": "5204"
|
||||||
},
|
},
|
||||||
"version": 2
|
"version": 6
|
||||||
}
|
}
|
||||||
@@ -12,6 +12,7 @@ return {
|
|||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
vim.list_extend(opts.ensure_installed, {
|
vim.list_extend(opts.ensure_installed, {
|
||||||
"phpactor",
|
"phpactor",
|
||||||
|
"intelephense",
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,24 @@
|
|||||||
-- luacheck: globals vim
|
-- luacheck: globals vim
|
||||||
return {
|
return {
|
||||||
|
-- Neotree configuration
|
||||||
|
{
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
opts = {
|
||||||
|
filesystem = {
|
||||||
|
filtered_items = {
|
||||||
|
always_show = {
|
||||||
|
".github",
|
||||||
|
".gitignore",
|
||||||
|
".editorconfig",
|
||||||
|
".python-version",
|
||||||
|
".nvmrc",
|
||||||
|
".env",
|
||||||
|
".env.example",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
-- Cloak allows you to overlay *'s over defined patterns in defined files.
|
-- Cloak allows you to overlay *'s over defined patterns in defined files.
|
||||||
-- https://github.com/laytan/cloak.nvim
|
-- https://github.com/laytan/cloak.nvim
|
||||||
{ "laytan/cloak.nvim" },
|
{ "laytan/cloak.nvim" },
|
||||||
@@ -36,7 +55,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
open_fold_hl_timeout = 150,
|
open_fold_hl_timeout = 150,
|
||||||
close_fold_kinds = { "imports", "comment" },
|
close_fold_kinds_for_ft = { "imports", "comment" },
|
||||||
preview = {
|
preview = {
|
||||||
win_config = {
|
win_config = {
|
||||||
border = { "", "─", "", "", "", "─", "", "" },
|
border = { "", "─", "", "", "", "─", "", "" },
|
||||||
|
|||||||
@@ -130,21 +130,5 @@
|
|||||||
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
||||||
"template": "\u279c "
|
"template": "\u279c "
|
||||||
},
|
},
|
||||||
"tooltips": [
|
|
||||||
{
|
|
||||||
"type": "git",
|
|
||||||
"tips": ["git", "g"],
|
|
||||||
"style": "diamond",
|
|
||||||
"foreground": "#193549",
|
|
||||||
"background": "#fffb38",
|
|
||||||
"leading_diamond": "",
|
|
||||||
"trailing_diamond": "",
|
|
||||||
"template": "{{ .HEAD }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}",
|
|
||||||
"properties": {
|
|
||||||
"fetch_status": true,
|
|
||||||
"fetch_upstream_icon": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 2
|
"version": 2
|
||||||
}
|
}
|
||||||
|
|||||||
1
config/tmux/plugins/tmux-dark-notify
Submodule
1
config/tmux/plugins/tmux-dark-notify
Submodule
Submodule config/tmux/plugins/tmux-dark-notify added at cd764c72e1
5
config/tmux/theme-dark.conf
Normal file
5
config/tmux/theme-dark.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
set-option -g status-style 'bg=default,fg=#cad3f5'
|
||||||
|
set-window-option -g window-status-style 'fg=#cad3f5,bg=default'
|
||||||
|
set-window-option -g window-status-current-style 'fg=#cad3f5,bg=#24273a'
|
||||||
|
set -g message-style 'fg=#c6a0f6 bg=#24273a bold'
|
||||||
|
|
||||||
5
config/tmux/theme-light.conf
Normal file
5
config/tmux/theme-light.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
set-option -g status-style 'bg=#eff1f5,fg=#4c4f69'
|
||||||
|
set-window-option -g window-status-style 'fg=#4c4f69,bg=#eff1f5'
|
||||||
|
set-window-option -g window-status-current-style 'fg=#4c4f69,bg=#7aa2f7'
|
||||||
|
set -g message-style 'fg=#8839ef bg=#e6e9ef bold' # fg magenta, bg black
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@ bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
|||||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||||
bind '"' split-window -v -c "#{pane_current_path}"
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
bind '!' split-window -h -c "#{pane_current_path}"
|
bind '!' split-window -h -c "#{pane_current_path}"
|
||||||
|
bind '^' switch-client -t'{marked}'
|
||||||
|
|
||||||
# synchronize all panes in a window
|
# synchronize all panes in a window
|
||||||
bind y setw synchronize-panes
|
bind y setw synchronize-panes
|
||||||
@@ -67,12 +68,29 @@ bind p paste-buffer
|
|||||||
# │ Settings │
|
# │ Settings │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
|
|
||||||
# Setting status on
|
# Setting status on
|
||||||
set -g status "on"
|
set -g status "on"
|
||||||
|
|
||||||
|
# Hide clock
|
||||||
|
set -g display-time 0
|
||||||
|
|
||||||
|
# Activity Monitoring (for when something happens in another pain)
|
||||||
|
set -g monitor-activity on
|
||||||
|
set -g visual-activity off
|
||||||
|
set -g visual-bell off
|
||||||
|
|
||||||
# Expose window title
|
# Expose window title
|
||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
|
|
||||||
|
# Set bigger history limit
|
||||||
|
set -g history-limit 20000
|
||||||
|
|
||||||
|
# Keep Tmux alive when the initial command is finished
|
||||||
|
set -g remain-on-exit off
|
||||||
|
|
||||||
# Mouse support
|
# Mouse support
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
@@ -92,21 +110,20 @@ set-window-option -g mode-keys vi
|
|||||||
# │ Theme │
|
# │ Theme │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
# Make sure status sides are long enough and centered is in the middle
|
set -g status-left-length "0"
|
||||||
set -g status-left-length "30"
|
|
||||||
set -g status-right-length "30"
|
set -g status-right-length "30"
|
||||||
|
|
||||||
set-option -g status-position "bottom"
|
set-option -g status-position "bottom"
|
||||||
set-option -g status-style 'bg=default,fg=#ffffff'
|
set-option -g status-justify left
|
||||||
set-option -g status-justify centre
|
set-option -g status-left ''
|
||||||
set-option -g status-left '#h '
|
|
||||||
set-window-option -g window-status-style 'fg=#ffffff,bg=default'
|
|
||||||
set-option -g window-status-format ' #I:#W '
|
set-option -g window-status-format ' #I:#W '
|
||||||
set-window-option -g window-status-current-style 'fg=#111111,bg=#7aa2f7'
|
|
||||||
set-option -g window-status-current-format ' #I:#W#{?window_zoomed_flag, , } '
|
set-option -g window-status-current-format ' #I:#W#{?window_zoomed_flag, , } '
|
||||||
|
|
||||||
set-option -g status-left "#{hostname_short}/#S"
|
set-option -g status-right "#{hostname_short}/#S #{tmux_mode_indicator}"
|
||||||
set-option -g status-right "%H:%M #{tmux_mode_indicator}"
|
|
||||||
|
# https://github.com/erikw/tmux-dark-notify
|
||||||
|
set -g @dark-notify-theme-path-light '~/.dotfiles/config/tmux/theme-light.conf'
|
||||||
|
set -g @dark-notify-theme-path-dark '~/.dotfiles/config/tmux/theme-dark.conf'
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
# │ Plugins related configurations │
|
# │ Plugins related configurations │
|
||||||
@@ -126,6 +143,7 @@ set -g @tmux_window_name_use_tilde "True"
|
|||||||
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
||||||
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
|
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
|
||||||
set -g @tmux_window_name_ignored_programs "['sqlite3', 'x-set-php-aliases']" # Default is []
|
set -g @tmux_window_name_ignored_programs "['sqlite3', 'x-set-php-aliases']" # Default is []
|
||||||
|
set -g @tmux_window_name_substitute_sets "[('.+ipython2', 'ipython2'), ('.+ipython3', 'ipython3')]"
|
||||||
|
|
||||||
## https://github.com/tmux-plugins/tmux-continuum
|
## https://github.com/tmux-plugins/tmux-continuum
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-restore 'on'
|
||||||
@@ -153,4 +171,5 @@ run-shell ~/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmu
|
|||||||
run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux
|
||||||
run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux
|
||||||
run-shell ~/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux
|
||||||
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-dark-notify/main.tmux
|
||||||
|
|
||||||
|
|||||||
@@ -213,6 +213,8 @@ function section_brew
|
|||||||
"update:Updates and upgrades brew packages"
|
"update:Updates and upgrades brew packages"
|
||||||
"updatebundle:Updates Brewfile with descriptions"
|
"updatebundle:Updates Brewfile with descriptions"
|
||||||
"autoupdate:Setups brew auto-update and runs it immediately"
|
"autoupdate:Setups brew auto-update and runs it immediately"
|
||||||
|
"leaves:List brew leaves (installed on request)"
|
||||||
|
"clean:Clean up brew packages"
|
||||||
)
|
)
|
||||||
|
|
||||||
x-have brew && {
|
x-have brew && {
|
||||||
@@ -225,12 +227,18 @@ function section_brew
|
|||||||
msg_yay "Done!"
|
msg_yay "Done!"
|
||||||
;;
|
;;
|
||||||
updatebundle)
|
updatebundle)
|
||||||
# Updates .dotfiles/Brewfile with descriptions
|
# Updates .dotfiles/homebrew/Brewfile with descriptions
|
||||||
brew bundle dump \
|
brew bundle dump \
|
||||||
--force \
|
--force \
|
||||||
--file="$BREWFILE" \
|
--file="$BREWFILE" \
|
||||||
--describe && msg_yay "Done!"
|
--describe && msg_yay "Done!"
|
||||||
;;
|
;;
|
||||||
|
leaves)
|
||||||
|
brew leaves --installed-on-request
|
||||||
|
;;
|
||||||
|
clean)
|
||||||
|
brew bundle cleanup --file="$BREWFILE" && msg_yay "Done!"
|
||||||
|
;;
|
||||||
autoupdate)
|
autoupdate)
|
||||||
brew autoupdate delete
|
brew autoupdate delete
|
||||||
brew autoupdate start 43200 --upgrade --cleanup --immediate
|
brew autoupdate start 43200 --upgrade --cleanup --immediate
|
||||||
|
|||||||
17
local/bin/x-gh-get-latest-release-targz
Executable file
17
local/bin/x-gh-get-latest-release-targz
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
REPO=$1
|
||||||
|
|
||||||
|
if [ -z "$REPO" ]; then
|
||||||
|
echo "Usage: $0 <repo> (e.g. ivuorinen/dotfiles)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
LOCATION=$(curl -s "https://api.github.com/repos/${REPO}/releases/latest" \
|
||||||
|
| sed -Ene '/^[[:blank:]]+"tarball_url":[[:blank:]]"(https:[^"]+)",/s//\1/p')
|
||||||
|
|
||||||
|
echo "Downloading and extracting from: $LOCATION"
|
||||||
|
|
||||||
|
curl --location --silent "$LOCATION" | tar --extract --gzip --file=-
|
||||||
|
|
||||||
|
# vim: set ts=2 sw=2 ft=sh et:
|
||||||
18
local/bin/x-gh-get-latest-version
Executable file
18
local/bin/x-gh-get-latest-version
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
REPO=$1
|
||||||
|
|
||||||
|
if [ -z "$REPO" ]; then
|
||||||
|
echo "Usage: $0 <repo> (e.g. ivuorinen/dotfiles)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSION=$(
|
||||||
|
curl -s "https://api.github.com/repos/${REPO}/releases/latest" \
|
||||||
|
| grep "tag_name" \
|
||||||
|
| awk '{print substr($2, 2, length($2)-3)}'
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
|
|
||||||
|
# vim: set ts=2 sw=2 ft=sh et:
|
||||||
@@ -29,5 +29,6 @@
|
|||||||
"homepage": "https://github.com/ivuorinen/dotfiles#readme",
|
"homepage": "https://github.com/ivuorinen/dotfiles#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ivuorinen/base-configs": "^1.1.0"
|
"@ivuorinen/base-configs": "^1.1.0"
|
||||||
}
|
},
|
||||||
|
"packageManager": "yarn@1.22.22"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,4 +2,6 @@ Include shared.d/*
|
|||||||
Include local.d/*
|
Include local.d/*
|
||||||
|
|
||||||
Host *
|
Host *
|
||||||
|
ServerAliveInterval 300 # send null packets every 5min to keep connection alive
|
||||||
|
ServerAliveCountMax 2 # if the server doesn't respond 2 times, it's gone so give up
|
||||||
# IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
|
# IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
|
||||||
|
|||||||
15
ssh/shared.d/demons
Normal file
15
ssh/shared.d/demons
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Host vine
|
||||||
|
User ubuntu
|
||||||
|
HostName vine.antiprocess.net
|
||||||
|
IdentityFile ~/.ssh/keys/vine.pem
|
||||||
|
|
||||||
|
Host purson
|
||||||
|
User ubuntu
|
||||||
|
HostName purson.antiprocess.net
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
Host paimon
|
||||||
|
User ivuorinen
|
||||||
|
HostName paimon.antiprocess.net
|
||||||
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
|
||||||
Reference in New Issue
Block a user