mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 13:49:13 +00:00
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 930dcf00c4 | |||
| bb8e3bba56 | |||
| 6431c2e6dc | |||
| 248eca1ae6 | |||
| 4b1ab2e1b8 | |||
| c0f537439b | |||
| 9ab132d37c | |||
| 2b9ddc232b | |||
| 1a244ce0b1 | |||
| fdc0f45b23 | |||
| 3fa90eef3b | |||
| 7ea7c12f0b | |||
| f76492b942 | |||
| 7947340663 | |||
| 300c48b1e9 | |||
| 772527cc66 | |||
|
|
370fdcbcbe | ||
| b32c86bac2 | |||
| 8d85809b1c | |||
| 7fc40e3eab | |||
|
|
1aca769ebf | ||
| 57df4edf6c | |||
| 240ac35aa8 | |||
| ad0ba59b67 | |||
| bbc26e66dd | |||
| 1803d41969 | |||
| 34d547433f | |||
| dff4b9a9c5 | |||
| c33404eb27 | |||
| 99e7578d60 | |||
| d8011728c7 | |||
| 2f67d4a2e2 |
@@ -19,7 +19,7 @@ indent_size = 1
|
|||||||
indent_size = 1
|
indent_size = 1
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
[{local/bin/*,**/*.sh,**/zshrc,config/*}]
|
[{local/bin/*,**/*.sh,**/zshrc,config/*,scripts/*}]
|
||||||
shell_variant = bash # --language-variant
|
shell_variant = bash # --language-variant
|
||||||
binary_next_line = true
|
binary_next_line = true
|
||||||
switch_case_indent = true # --case-indent
|
switch_case_indent = true # --case-indent
|
||||||
|
|||||||
1
.github/workflows/changelog.yml
vendored
1
.github/workflows/changelog.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Debug Changelog # Workflow name displayed on GitHub
|
name: Debug Changelog # Workflow name displayed on GitHub
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Trigger manually
|
workflow_dispatch: # Trigger manually
|
||||||
|
|||||||
1
.github/workflows/linters.yml
vendored
1
.github/workflows/linters.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: reviewdog
|
name: reviewdog
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
5
.github/workflows/new-release.yml
vendored
5
.github/workflows/new-release.yml
vendored
@@ -1,13 +1,14 @@
|
|||||||
|
---
|
||||||
name: Release Daily State # Workflow name displayed on GitHub
|
name: Release Daily State # Workflow name displayed on GitHub
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Trigger manually
|
workflow_dispatch: # Trigger manually
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 20 * * *' # UTC is 2-3 hours behind Europe/Helsinki, my timezone
|
- cron: '30 20 * * *' # UTC is 2-3 hours behind Europe/Helsinki, my timezone
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
jobs:
|
jobs:
|
||||||
new-daily-release:
|
new-daily-release:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
outputs:
|
outputs:
|
||||||
created: ${{ steps.daily-version.outputs.created }}
|
created: ${{ steps.daily-version.outputs.created }}
|
||||||
version: ${{ steps.daily-version.outputs.version }}
|
version: ${{ steps.daily-version.outputs.version }}
|
||||||
|
|||||||
1
.github/workflows/semantic-pr.yml
vendored
1
.github/workflows/semantic-pr.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Semantic PR
|
name: Semantic PR
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
9
.github/workflows/update-submodules.yml
vendored
9
.github/workflows/update-submodules.yml
vendored
@@ -1,13 +1,14 @@
|
|||||||
|
---
|
||||||
name: Update submodules
|
name: Update submodules
|
||||||
on:
|
on:
|
||||||
schedule: [{ cron: 0 3 * * * }]
|
schedule: [{ cron: 0 3 * * * }]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
jobs:
|
jobs:
|
||||||
update-submodules:
|
update-submodules:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# only care about files that are under our control
|
# only care about files that are directly under our control
|
||||||
config/cheat/cheatsheets/community/*
|
config/cheat/cheatsheets/community/*
|
||||||
|
config/cheat/cheatsheets/tldr/*
|
||||||
config/tmux/plugins/*
|
config/tmux/plugins/*
|
||||||
|
local/bin/asdf/*
|
||||||
tools/*
|
tools/*
|
||||||
node_modules/*
|
node_modules/*
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
3.12
|
3.12.6
|
||||||
|
|||||||
@@ -1,29 +1,30 @@
|
|||||||
|
asdf-plugin-manager 1.3.1
|
||||||
|
nodejs 22.8.0
|
||||||
|
golang 1.23.1
|
||||||
|
python 3.12.6
|
||||||
|
ruby 3.3.4
|
||||||
|
rust 1.81.0
|
||||||
|
direnv 2.34.0
|
||||||
|
eza 0.19.3
|
||||||
|
fd 10.2.0
|
||||||
1password-cli 2.30.0
|
1password-cli 2.30.0
|
||||||
age 1.2.0
|
age 1.2.0
|
||||||
asdf-plugin-manager 1.3.1
|
|
||||||
bottom 0.10.2
|
bottom 0.10.2
|
||||||
direnv 2.34.0
|
|
||||||
dotenv-linter 3.3.0
|
dotenv-linter 3.3.0
|
||||||
editorconfig-checker 2.8.0
|
editorconfig-checker 2.8.0
|
||||||
eza 0.19.0
|
github-cli 2.56.0
|
||||||
fd 10.1.0
|
|
||||||
github-cli 2.55.0
|
|
||||||
golang 1.23.0
|
|
||||||
hadolint 2.12.0
|
hadolint 2.12.0
|
||||||
kubectl 1.31.0
|
kubectl 1.31.1
|
||||||
lazygit 0.43.1
|
pipx 1.7.1
|
||||||
nodejs 22.6.0
|
|
||||||
pipx 1.6.0
|
|
||||||
pre-commit 3.8.0
|
pre-commit 3.8.0
|
||||||
ripgrep 14.1.0
|
ripgrep 14.1.1
|
||||||
ruby 3.3.4
|
|
||||||
rust 1.80.1
|
|
||||||
semgrep system
|
|
||||||
shellcheck 0.10.0
|
shellcheck 0.10.0
|
||||||
shfmt 3.8.0
|
shfmt 3.9.0
|
||||||
terraform-lsp 0.0.12
|
terragrunt 0.67.5
|
||||||
terragrunt 0.66.3
|
|
||||||
tf-summarize 0.3.10
|
tf-summarize 0.3.10
|
||||||
vault 1.17.3+ent
|
|
||||||
yamllint 1.35.1
|
yamllint 1.35.1
|
||||||
yq 4.44.3
|
yq 4.44.3
|
||||||
|
bats 1.11.0
|
||||||
|
gitleaks 8.18.4
|
||||||
|
delta 0.18.1
|
||||||
|
lazygit 0.44.0
|
||||||
|
|||||||
13
base/zshrc
13
base/zshrc
@@ -23,15 +23,20 @@ load_antigen()
|
|||||||
|
|
||||||
antigen use oh-my-zsh
|
antigen use oh-my-zsh
|
||||||
|
|
||||||
|
# Disable ls colors to avoid issues with eza
|
||||||
|
export DISABLE_LS_COLORS=true
|
||||||
|
|
||||||
export ZSH_TMUX_AUTOSTART=false
|
export ZSH_TMUX_AUTOSTART=false
|
||||||
export ZSH_TMUX_CONFIG="$DOTFILES/config/tmux/tmux.conf"
|
export ZSH_TMUX_CONFIG="$DOTFILES/config/tmux/tmux.conf"
|
||||||
export ZSH_TMUX_UNICODE=true
|
export ZSH_TMUX_UNICODE=true
|
||||||
export ZSH_TMUX_AUTOQUIT=false
|
export ZSH_TMUX_AUTOQUIT=false
|
||||||
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
|
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
|
||||||
|
|
||||||
zstyle :omz:plugins:eza 'dirs-first' yes
|
zstyle ':omz:plugins:eza' 'dirs-first' yes
|
||||||
zstyle :omz:plugins:eza 'git-status' yes
|
zstyle ':omz:plugins:eza' 'git-status' yes
|
||||||
zstyle :omz:plugins:eza 'icons' yes
|
zstyle ':omz:plugins:eza' 'icons' yes
|
||||||
|
zstyle ':omz:plugins:eza' 'ls' yes
|
||||||
|
zstyle ':omz:plugins:eza' 'prompt' yes
|
||||||
|
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
zstyle :omz:plugins:ssh-agent keychain yes
|
zstyle :omz:plugins:ssh-agent keychain yes
|
||||||
@@ -51,7 +56,7 @@ load_antigen()
|
|||||||
antigen bundle ssh-agent
|
antigen bundle ssh-agent
|
||||||
antigen bundle gpg-agent
|
antigen bundle gpg-agent
|
||||||
antigen bundle brew
|
antigen bundle brew
|
||||||
antigen bundle tmux
|
# antigen bundle tmux
|
||||||
antigen bundle colored-man-pages
|
antigen bundle colored-man-pages
|
||||||
antigen bundle zsh-users/zsh-completions
|
antigen bundle zsh-users/zsh-completions
|
||||||
antigen bundle eza
|
antigen bundle eza
|
||||||
|
|||||||
@@ -53,14 +53,17 @@ alias flush="dscacheutil -flushcache"
|
|||||||
alias updatedb="sudo /usr/libexec/locate.updatedb"
|
alias updatedb="sudo /usr/libexec/locate.updatedb"
|
||||||
|
|
||||||
# tmux: automatically attach or create session with name 'main'
|
# tmux: automatically attach or create session with name 'main'
|
||||||
alias tmux='tmux new-session -A -s main'
|
alias tm='command 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='command tmux attach || command tmux'
|
||||||
|
|
||||||
# nvim
|
# nvim
|
||||||
alias nvim-ks='NVIM_APPNAME="nvim-kickstart" nvim'
|
alias nvim-ks='NVIM_APPNAME="nvim-kickstart" nvim'
|
||||||
alias ks='NVIM_APPNAME="nvim-kickstart" nvim'
|
alias ks='NVIM_APPNAME="nvim-kickstart" nvim'
|
||||||
|
|
||||||
|
# xdg-ninja aliases for better experience
|
||||||
|
alias xdg='xdg-ninja --skip-ok --skip-unsupported'
|
||||||
|
|
||||||
# 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
|
||||||
@@ -119,6 +122,7 @@ X_ALIAS_FILES=(
|
|||||||
"$HOME/.config/alias-$(hostname)-secret"
|
"$HOME/.config/alias-$(hostname)-secret"
|
||||||
)
|
)
|
||||||
for aliasFile in "${X_ALIAS_FILES[@]}"; do
|
for aliasFile in "${X_ALIAS_FILES[@]}"; do
|
||||||
|
# shellcheck source=$HOME/.config/alias-secret
|
||||||
[ -f "$aliasFile" ] && source "$aliasFile" && msg "Sourced $aliasFile"
|
[ -f "$aliasFile" ] && source "$aliasFile" && msg "Sourced $aliasFile"
|
||||||
done
|
done
|
||||||
unset X_ALIAS_FILES
|
unset X_ALIAS_FILES
|
||||||
|
|||||||
3
config/asdf-direnv/zshrc
Normal file
3
config/asdf-direnv/zshrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
### Do not edit. This was autogenerated by 'asdf direnv setup' ###
|
||||||
|
export ASDF_DIRENV_BIN="$(asdf where direnv)/bin/direnv"
|
||||||
|
eval "$($ASDF_DIRENV_BIN hook zsh)"
|
||||||
@@ -1,28 +1,27 @@
|
|||||||
1password-cli https://github.com/NeoHsu/asdf-1password-cli.git f5d5aab
|
1password-cli https://github.com/NeoHsu/asdf-1password-cli.git f5d5aab
|
||||||
age https://github.com/threkk/asdf-age.git 4df80a0
|
age https://github.com/threkk/asdf-age.git 4df80a0
|
||||||
asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git 50d2735
|
asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git ecd1642
|
||||||
bottom https://github.com/carbonteq/asdf-btm.git fd8a55a
|
bottom https://github.com/carbonteq/asdf-btm.git fd8a55a
|
||||||
dotenv-linter https://github.com/wesleimp/asdf-dotenv-linter.git 1369f53
|
direnv https://github.com/asdf-community/asdf-direnv.git a2219c2
|
||||||
editorconfig-checker https://github.com/gabitchov/asdf-editorconfig-checker.git 585c1d5
|
dotenv-linter https://github.com/wesleimp/asdf-dotenv-linter.git 1369f53
|
||||||
eza https://github.com/lwiechec/asdf-eza.git 08c1b65
|
editorconfig-checker https://github.com/gabitchov/asdf-editorconfig-checker.git 585c1d5
|
||||||
fd https://gitlab.com/wt0f/asdf-fd.git 17d56e0
|
eza https://github.com/lwiechec/asdf-eza.git eee3d59
|
||||||
github-cli https://github.com/bartlomiejdanek/asdf-github-cli.git e0605b7
|
fd https://gitlab.com/wt0f/asdf-fd.git 17d56e0
|
||||||
hadolint https://github.com/devlincashman/asdf-hadolint.git 335e230
|
github-cli https://github.com/bartlomiejdanek/asdf-github-cli.git e0605b7
|
||||||
kubectl https://github.com/asdf-community/asdf-kubectl.git cbe6df4
|
golang https://github.com/asdf-community/asdf-golang.git 0e86b1d
|
||||||
lazygit https://github.com/nklmilojevic/asdf-lazygit.git 78e04f1
|
hadolint https://github.com/devlincashman/asdf-hadolint.git 335e230
|
||||||
neovim https://github.com/richin13/asdf-neovim d6118ad
|
kubectl https://github.com/asdf-community/asdf-kubectl.git cbe6df4
|
||||||
nodejs https://github.com/asdf-vm/asdf-nodejs.git c5b7c40
|
lazygit https://github.com/nklmilojevic/asdf-lazygit.git 78e04f1
|
||||||
pipx https://github.com/yozachar/asdf-pipx.git 31db618
|
nodejs https://github.com/asdf-vm/asdf-nodejs.git c5b7c40
|
||||||
pre-commit https://github.com/jonathanmorley/asdf-pre-commit.git 26bfc42
|
pipx https://github.com/yozachar/asdf-pipx.git 31db618
|
||||||
ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git e836665
|
pre-commit https://github.com/jonathanmorley/asdf-pre-commit.git 26bfc42
|
||||||
rust https://github.com/code-lever/asdf-rust.git 95acf4f
|
python https://github.com/asdf-community/asdf-python 7b0af87
|
||||||
semgrep https://github.com/brentjanderson/asdf-semgrep.git 13ff78b
|
ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git e836665
|
||||||
shellcheck https://github.com/luizm/asdf-shellcheck.git 780d78d
|
ruby https://github.com/asdf-vm/asdf-ruby.git 27f78c9
|
||||||
shfmt https://github.com/luizm/asdf-shfmt.git a42c5ff
|
rust https://github.com/code-lever/asdf-rust.git 95acf4f
|
||||||
terraform-ls https://github.com/asdf-community/asdf-hashicorp.git f1602b6
|
shellcheck https://github.com/luizm/asdf-shellcheck.git 780d78d
|
||||||
terraform-lsp https://github.com/bartlomiejdanek/asdf-terraform-lsp.git bba7106
|
shfmt https://github.com/luizm/asdf-shfmt.git a42c5ff
|
||||||
terragrunt https://github.com/ohmer/asdf-terragrunt 4a6651a
|
terragrunt https://github.com/ohmer/asdf-terragrunt.git 4a6651a
|
||||||
tf-summarize https://github.com/adamcrews/asdf-tf-summarize.git 880ad26
|
tf-summarize https://github.com/adamcrews/asdf-tf-summarize.git 880ad26
|
||||||
vault https://github.com/asdf-community/asdf-hashicorp.git f1602b6
|
yamllint https://github.com/ericcornelissen/asdf-yamllint.git 2f4fd4c
|
||||||
yamllint https://github.com/ericcornelissen/asdf-yamllint.git d5c3161
|
yq https://github.com/sudermanjr/asdf-yq.git 772992f
|
||||||
yq https://github.com/sudermanjr/asdf-yq.git 772992f
|
|
||||||
|
|||||||
2
config/asdf/python-packages
Normal file
2
config/asdf/python-packages
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
ansible
|
||||||
|
pipenv
|
||||||
@@ -7,7 +7,7 @@ colorize: false
|
|||||||
# Which 'chroma' colorscheme should be applied to the output?
|
# Which 'chroma' colorscheme should be applied to the output?
|
||||||
# Options are available here:
|
# Options are available here:
|
||||||
# https://github.com/alecthomas/chroma/tree/master/styles
|
# https://github.com/alecthomas/chroma/tree/master/styles
|
||||||
style: 'tokyonight'
|
# style: 'tokyonight-day'
|
||||||
# Which 'chroma' "formatter" should be applied?
|
# Which 'chroma' "formatter" should be applied?
|
||||||
# One of: "terminal", "terminal256", "terminal16m"
|
# One of: "terminal", "terminal256", "terminal16m"
|
||||||
formatter: terminal256
|
formatter: terminal256
|
||||||
|
|||||||
11
config/direnv/direnv.toml
Normal file
11
config/direnv/direnv.toml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[global]
|
||||||
|
disable_stdin = true
|
||||||
|
|
||||||
|
[whitelist]
|
||||||
|
prefix = [
|
||||||
|
"~/Code/ivuorinen/"
|
||||||
|
]
|
||||||
|
exact = [
|
||||||
|
"~/.dotfiles/.envrc"
|
||||||
|
]
|
||||||
|
|
||||||
4
config/direnv/lib/use_asdf.sh
Normal file
4
config/direnv/lib/use_asdf.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
### Do not edit. This was autogenerated by 'asdf direnv setup' ###
|
||||||
|
use_asdf() {
|
||||||
|
source_env "$(asdf direnv envrc "$@")"
|
||||||
|
}
|
||||||
@@ -15,6 +15,12 @@
|
|||||||
|
|
||||||
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$XDG_DATA_HOME/bob/nvim-bin:$XDG_DATA_HOME/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
|
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$XDG_DATA_HOME/bob/nvim-bin:$XDG_DATA_HOME/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
|
||||||
|
|
||||||
|
# Load bash completions if available for zsh
|
||||||
|
if [[ -n "$ZSH_VERSION" ]]; then
|
||||||
|
autoload bashcompinit
|
||||||
|
bashcompinit
|
||||||
|
fi
|
||||||
|
|
||||||
# Load asdf
|
# Load asdf
|
||||||
export ASDF_DIR="$XDG_BIN_HOME/asdf"
|
export ASDF_DIR="$XDG_BIN_HOME/asdf"
|
||||||
if [[ -d $ASDF_DIR ]]; then
|
if [[ -d $ASDF_DIR ]]; then
|
||||||
@@ -87,7 +93,7 @@ darknotify_alacritty()
|
|||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
darknotify_alacritty
|
# darknotify_alacritty
|
||||||
|
|
||||||
# Function to list installed Homebrew packages using bkt caching
|
# Function to list installed Homebrew packages using bkt caching
|
||||||
brew_installed()
|
brew_installed()
|
||||||
@@ -141,7 +147,7 @@ rector()
|
|||||||
{
|
{
|
||||||
local php="${1:-82}"
|
local php="${1:-82}"
|
||||||
docker run -v "$(pwd)":/project rector/rector:latest process \
|
docker run -v "$(pwd)":/project rector/rector:latest process \
|
||||||
"/project/$1" \
|
"/project/" \
|
||||||
--set "php${php}" \
|
--set "php${php}" \
|
||||||
--autoload-file /project/vendor/autoload.php
|
--autoload-file /project/vendor/autoload.php
|
||||||
}
|
}
|
||||||
@@ -322,13 +328,17 @@ export ASDF_CONFIG_FILE="${XDG_CONFIG_HOME}/asdf/asdfrc"
|
|||||||
export ASDF_DATA_DIR="${ASDF_DIR}"
|
export ASDF_DATA_DIR="${ASDF_DIR}"
|
||||||
export ASDF_PLUGIN_MANAGER_PLUGIN_VERSIONS_FILENAME="${XDG_CONFIG_HOME}/asdf/plugin-versions"
|
export ASDF_PLUGIN_MANAGER_PLUGIN_VERSIONS_FILENAME="${XDG_CONFIG_HOME}/asdf/plugin-versions"
|
||||||
export ASDF_LOG_FILE="${XDG_CACHE_HOME}/asdf/asdf.log"
|
export ASDF_LOG_FILE="${XDG_CACHE_HOME}/asdf/asdf.log"
|
||||||
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY="latest_available"
|
## Default package files
|
||||||
export ASDF_NPM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/npm-packages"
|
|
||||||
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
|
||||||
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/golang-packages"
|
|
||||||
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages"
|
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages"
|
||||||
export ASDF_GEM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/gem-packages"
|
export ASDF_GEM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/gem-packages"
|
||||||
|
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/golang-packages"
|
||||||
|
export ASDF_NPM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/npm-packages"
|
||||||
|
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/python-packages"
|
||||||
|
## Plugin configuration
|
||||||
export ASDF_DIRENV_IGNORE_MISSING_PLUGINS=1
|
export ASDF_DIRENV_IGNORE_MISSING_PLUGINS=1
|
||||||
|
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
||||||
|
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY="latest_available"
|
||||||
|
## Add asdf to path
|
||||||
export PATH="${ASDF_DIR}/bin:${PATH}"
|
export PATH="${ASDF_DIR}/bin:${PATH}"
|
||||||
|
|
||||||
# bob manages nvim versions
|
# bob manages nvim versions
|
||||||
@@ -346,6 +356,8 @@ export HOMEBREW_NO_ENV_HINTS=true
|
|||||||
export HOMEBREW_BUNDLE_MAS_SKIP=true
|
export HOMEBREW_BUNDLE_MAS_SKIP=true
|
||||||
export HOMEBREW_BUNDLE_FILE="$XDG_CONFIG_HOME/homebrew/Brewfile"
|
export HOMEBREW_BUNDLE_FILE="$XDG_CONFIG_HOME/homebrew/Brewfile"
|
||||||
x-have brew && {
|
x-have brew && {
|
||||||
|
# Add brew autocompletion to fpath
|
||||||
|
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||||
eval "$(brew shellenv)"
|
eval "$(brew shellenv)"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -410,6 +422,8 @@ export OP_CACHE="$XDG_STATE_HOME/1password"
|
|||||||
msg "Setting up Python configuration"
|
msg "Setting up Python configuration"
|
||||||
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"
|
||||||
|
## for MichaelAquilina/zsh-autoswitch-virtualenv
|
||||||
|
export AUTOSWITCH_VIRTUAL_ENV_DIR="$WORKON_HOME"
|
||||||
export PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
|
export PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
|
||||||
x-have pyenv && {
|
x-have pyenv && {
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
@@ -434,6 +448,7 @@ msg "Setting up Rust/Cargo configuration"
|
|||||||
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
export PATH="$CARGO_HOME/bin:$PATH"
|
export PATH="$CARGO_HOME/bin:$PATH"
|
||||||
|
export RUST_WITHOUT=rust-docs
|
||||||
|
|
||||||
# screen
|
# screen
|
||||||
# https://www.gnu.org/software/screen/manual/screen.html
|
# https://www.gnu.org/software/screen/manual/screen.html
|
||||||
|
|||||||
@@ -19,3 +19,4 @@ wp_*.sh
|
|||||||
auth.json
|
auth.json
|
||||||
dfm.sh
|
dfm.sh
|
||||||
.scannerwork
|
.scannerwork
|
||||||
|
.phpactor.json
|
||||||
|
|||||||
@@ -17,11 +17,12 @@
|
|||||||
llog = log --pretty=fuller
|
llog = log --pretty=fuller
|
||||||
logs = log --graph --pretty=format:'%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) %C(cyan)<%an>%Creset' --abbrev-commit
|
logs = log --graph --pretty=format:'%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) %C(cyan)<%an>%Creset' --abbrev-commit
|
||||||
nah = !git reset --hard && git clean -df
|
nah = !git reset --hard && git clean -df
|
||||||
|
recent = "!r() { count=$1; git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' --color=always --count=${count:=10} | column -ts'|';}; r"
|
||||||
reset-origin = !git fetch origin && git reset --hard origin/master && git clean -f -d
|
reset-origin = !git fetch origin && git reset --hard origin/master && git clean -f -d
|
||||||
reset-upstream = !git fetch upstream && git reset --hard upstream/master && git clean -f -d
|
reset-upstream = !git fetch upstream && git reset --hard upstream/master && git clean -f -d
|
||||||
recent = "!r() { count=$1; git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' --color=always --count=${count:=10} | column -ts'|';}; r"
|
|
||||||
rl = reflog --format='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)'
|
rl = reflog --format='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)'
|
||||||
tagdate = log --date-order --graph --tags --simplify-by-decoration --pretty=format:\"%ai %h %d\"
|
tagdate = log --date-order --graph --tags --simplify-by-decoration --pretty=format:\"%ai %h %d\"
|
||||||
|
undo = reset --soft HEAD^
|
||||||
undo-commit = reset HEAD~ --soft
|
undo-commit = reset HEAD~ --soft
|
||||||
|
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
@@ -30,15 +31,6 @@
|
|||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
|
|
||||||
[diff]
|
|
||||||
tool = difftastic
|
|
||||||
|
|
||||||
[difftool]
|
|
||||||
prompt = false
|
|
||||||
|
|
||||||
[difftool "difftastic"]
|
|
||||||
cmd = difft "$LOCAL" "$REMOTE"
|
|
||||||
|
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
ui = true
|
||||||
diff = auto
|
diff = auto
|
||||||
|
|||||||
Submodule config/nvim-kickstart updated: f5aa89acb8...d1d9f7b214
@@ -29,7 +29,7 @@
|
|||||||
"lazyvim.plugins.extras.util.mini-hipatterns"
|
"lazyvim.plugins.extras.util.mini-hipatterns"
|
||||||
],
|
],
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "6077"
|
"NEWS.md": "6520"
|
||||||
},
|
},
|
||||||
"version": 6
|
"version": 6
|
||||||
}
|
}
|
||||||
@@ -6,17 +6,11 @@ local wk = require("which-key")
|
|||||||
-- ╭──────────────────────────────────────────────────────────╮
|
-- ╭──────────────────────────────────────────────────────────╮
|
||||||
-- │ Comment box │
|
-- │ Comment box │
|
||||||
-- ╰──────────────────────────────────────────────────────────╯
|
-- ╰──────────────────────────────────────────────────────────╯
|
||||||
wk.register({
|
wk.add({
|
||||||
["<Leader>"] = {
|
{ "<Leader>bc", group = "□ Comment box" },
|
||||||
b = {
|
{ "<Leader>bcb", "<Cmd>CBccbox<CR>", desc = "Box Title" },
|
||||||
c = {
|
{ "<Leader>bcd", "<Cmd>CBd<CR>", desc = "Remove a box" },
|
||||||
name = "□ Comment boxes",
|
{ "<Leader>bcl", "<Cmd>CBline<CR>", desc = "Simple Line" },
|
||||||
b = { "<Cmd>CBccbox<CR>", "Box Title" },
|
{ "<Leader>bcm", "<Cmd>CBllbox14<CR>", desc = "Marked" },
|
||||||
t = { "<Cmd>CBllline<CR>", "Titled Line" },
|
{ "<Leader>bct", "<Cmd>CBllline<CR>", desc = "Titled Line" },
|
||||||
l = { "<Cmd>CBline<CR>", "Simple Line" },
|
|
||||||
m = { "<Cmd>CBllbox14<CR>", "Marked" },
|
|
||||||
d = { "<Cmd>CBd<CR>", "Remove a box" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
blade-formatter
|
|
||||||
corepack
|
|
||||||
editorconfig-checker
|
|
||||||
github-release-notes
|
|
||||||
neovim
|
|
||||||
stylelint-lsp
|
|
||||||
|
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||||
"final_space": true,
|
"final_space": true,
|
||||||
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
|
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
|
||||||
|
"auto_upgrade": true,
|
||||||
"blocks": [
|
"blocks": [
|
||||||
{
|
{
|
||||||
"alignment": "left",
|
"alignment": "left",
|
||||||
@@ -111,7 +112,9 @@
|
|||||||
{
|
{
|
||||||
"background": "transparent",
|
"background": "transparent",
|
||||||
"foreground": "lightGreen",
|
"foreground": "lightGreen",
|
||||||
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
"foreground_templates": [
|
||||||
|
"{{ if gt .Code 0 }}red{{ end }}"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"always_enabled": true
|
"always_enabled": true
|
||||||
},
|
},
|
||||||
@@ -126,7 +129,9 @@
|
|||||||
"transient_prompt": {
|
"transient_prompt": {
|
||||||
"background": "transparent",
|
"background": "transparent",
|
||||||
"foreground": "lightGreen",
|
"foreground": "lightGreen",
|
||||||
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
"foreground_templates": [
|
||||||
|
"{{ if gt .Code 0 }}red{{ end }}"
|
||||||
|
],
|
||||||
"template": "\u279c "
|
"template": "\u279c "
|
||||||
},
|
},
|
||||||
"version": 2
|
"version": 2
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
final_space = true
|
final_space = true
|
||||||
console_title_template = "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}"
|
console_title_template = "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}"
|
||||||
version = 2
|
version = 2
|
||||||
|
auto_upgrade = true
|
||||||
|
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
alignment = "left"
|
alignment = "left"
|
||||||
@@ -28,13 +29,15 @@ type = "prompt"
|
|||||||
style = "mixed"
|
style = "mixed"
|
||||||
|
|
||||||
[blocks.segments.mapped_locations]
|
[blocks.segments.mapped_locations]
|
||||||
"~/Code/*" = ""
|
"~/Code/*" = ""
|
||||||
|
"~/Code/ivuorinen/" = ""
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = "git"
|
type = "git"
|
||||||
style = "plain"
|
style = "plain"
|
||||||
foreground = "lightGreen"
|
foreground = "lightGreen"
|
||||||
template = "{{ .UpstreamIcon }}{{ if or (.Staging.Changed) (.Working.Changed) }}({{if .Behind }}\u2193 {{ .Behind }} {{ end }}{{if .Staging.Changed }}\uF046 {{ .Staging.String }} {{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}| {{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}){{ end }}"
|
# template = "{{ .UpstreamIcon }}{{ .HEAD }} {{ if or (.Staging.Changed) (.Working.Changed) }}({{if .Behind }}\u2193 {{ .Behind }} {{ end }}{{if .Staging.Changed }}\uF046 {{ .Staging.String }} {{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}| {{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}){{ end }}"
|
||||||
|
template = "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }}"
|
||||||
|
|
||||||
[blocks.segments.properties]
|
[blocks.segments.properties]
|
||||||
fetch_status = true
|
fetch_status = true
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
version = 2
|
version = 2
|
||||||
final_space = true
|
final_space = true
|
||||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
|
auto_upgrade = true
|
||||||
|
|
||||||
[[blocks]]
|
[[blocks]]
|
||||||
type = 'prompt'
|
type = 'prompt'
|
||||||
|
|||||||
@@ -79,4 +79,3 @@ Leader: `<ctrl><space>`
|
|||||||
S-Left Move the visible part of the window left
|
S-Left Move the visible part of the window left
|
||||||
S-Right Move the visible part of the window right
|
S-Right Move the visible part of the window right
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -4,276 +4,276 @@
|
|||||||
Default key table
|
Default key table
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
CTRL Tab -> ActivateTabRelative(1)
|
CTRL Tab -> ActivateTabRelative(1)
|
||||||
SHIFT | CTRL Tab -> ActivateTabRelative(-1)
|
SHIFT | CTRL Tab -> ActivateTabRelative(-1)
|
||||||
ALT Enter -> ToggleFullScreen
|
ALT Enter -> ToggleFullScreen
|
||||||
CTRL ! -> ActivateTab(0)
|
CTRL ! -> ActivateTab(0)
|
||||||
SHIFT | CTRL ! -> ActivateTab(0)
|
SHIFT | CTRL ! -> ActivateTab(0)
|
||||||
ALT | CTRL " -> SplitVertical(SpawnCommand domain=CurrentPaneDomain)
|
ALT | CTRL " -> SplitVertical(SpawnCommand domain=CurrentPaneDomain)
|
||||||
SHIFT | ALT | CTRL " -> SplitVertical(SpawnCommand domain=CurrentPaneDomain)
|
SHIFT | ALT | CTRL " -> SplitVertical(SpawnCommand domain=CurrentPaneDomain)
|
||||||
CTRL # -> ActivateTab(2)
|
CTRL # -> ActivateTab(2)
|
||||||
SHIFT | CTRL # -> ActivateTab(2)
|
SHIFT | CTRL # -> ActivateTab(2)
|
||||||
CTRL $ -> ActivateTab(3)
|
CTRL $ -> ActivateTab(3)
|
||||||
SHIFT | CTRL $ -> ActivateTab(3)
|
SHIFT | CTRL $ -> ActivateTab(3)
|
||||||
CTRL % -> ActivateTab(4)
|
CTRL % -> ActivateTab(4)
|
||||||
SHIFT | CTRL % -> ActivateTab(4)
|
SHIFT | CTRL % -> ActivateTab(4)
|
||||||
ALT | CTRL % -> SplitHorizontal(SpawnCommand domain=CurrentPaneDomain)
|
ALT | CTRL % -> SplitHorizontal(SpawnCommand domain=CurrentPaneDomain)
|
||||||
SHIFT | ALT | CTRL % -> SplitHorizontal(SpawnCommand domain=CurrentPaneDomain)
|
SHIFT | ALT | CTRL % -> SplitHorizontal(SpawnCommand domain=CurrentPaneDomain)
|
||||||
CTRL & -> ActivateTab(6)
|
CTRL & -> ActivateTab(6)
|
||||||
SHIFT | CTRL & -> ActivateTab(6)
|
SHIFT | CTRL & -> ActivateTab(6)
|
||||||
SHIFT | ALT | CTRL ' -> SplitVertical(SpawnCommand domain=CurrentPaneDomain)
|
SHIFT | ALT | CTRL ' -> SplitVertical(SpawnCommand domain=CurrentPaneDomain)
|
||||||
CTRL ( -> ActivateTab(-1)
|
CTRL ( -> ActivateTab(-1)
|
||||||
SHIFT | CTRL ( -> ActivateTab(-1)
|
SHIFT | CTRL ( -> ActivateTab(-1)
|
||||||
CTRL ) -> ResetFontSize
|
CTRL ) -> ResetFontSize
|
||||||
SHIFT | CTRL ) -> ResetFontSize
|
SHIFT | CTRL ) -> ResetFontSize
|
||||||
CTRL * -> ActivateTab(7)
|
CTRL * -> ActivateTab(7)
|
||||||
SHIFT | CTRL * -> ActivateTab(7)
|
SHIFT | CTRL * -> ActivateTab(7)
|
||||||
CTRL + -> IncreaseFontSize
|
CTRL + -> IncreaseFontSize
|
||||||
SHIFT | CTRL + -> IncreaseFontSize
|
SHIFT | CTRL + -> IncreaseFontSize
|
||||||
CTRL - -> DecreaseFontSize
|
CTRL - -> DecreaseFontSize
|
||||||
SHIFT | CTRL - -> DecreaseFontSize
|
SHIFT | CTRL - -> DecreaseFontSize
|
||||||
SUPER - -> DecreaseFontSize
|
SUPER - -> DecreaseFontSize
|
||||||
CTRL 0 -> ResetFontSize
|
CTRL 0 -> ResetFontSize
|
||||||
SHIFT | CTRL 0 -> ResetFontSize
|
SHIFT | CTRL 0 -> ResetFontSize
|
||||||
SUPER 0 -> ResetFontSize
|
SUPER 0 -> ResetFontSize
|
||||||
SHIFT | CTRL 1 -> ActivateTab(0)
|
SHIFT | CTRL 1 -> ActivateTab(0)
|
||||||
SUPER 1 -> ActivateTab(0)
|
SUPER 1 -> ActivateTab(0)
|
||||||
SHIFT | CTRL 2 -> ActivateTab(1)
|
SHIFT | CTRL 2 -> ActivateTab(1)
|
||||||
SUPER 2 -> ActivateTab(1)
|
SUPER 2 -> ActivateTab(1)
|
||||||
SHIFT | CTRL 3 -> ActivateTab(2)
|
SHIFT | CTRL 3 -> ActivateTab(2)
|
||||||
SUPER 3 -> ActivateTab(2)
|
SUPER 3 -> ActivateTab(2)
|
||||||
SHIFT | CTRL 4 -> ActivateTab(3)
|
SHIFT | CTRL 4 -> ActivateTab(3)
|
||||||
SUPER 4 -> ActivateTab(3)
|
SUPER 4 -> ActivateTab(3)
|
||||||
SHIFT | CTRL 5 -> ActivateTab(4)
|
SHIFT | CTRL 5 -> ActivateTab(4)
|
||||||
SHIFT | ALT | CTRL 5 -> SplitHorizontal(SpawnCommand domain=CurrentPaneDomain)
|
SHIFT | ALT | CTRL 5 -> SplitHorizontal(SpawnCommand domain=CurrentPaneDomain)
|
||||||
SUPER 5 -> ActivateTab(4)
|
SUPER 5 -> ActivateTab(4)
|
||||||
SHIFT | CTRL 6 -> ActivateTab(5)
|
SHIFT | CTRL 6 -> ActivateTab(5)
|
||||||
SUPER 6 -> ActivateTab(5)
|
SUPER 6 -> ActivateTab(5)
|
||||||
SHIFT | CTRL 7 -> ActivateTab(6)
|
SHIFT | CTRL 7 -> ActivateTab(6)
|
||||||
SUPER 7 -> ActivateTab(6)
|
SUPER 7 -> ActivateTab(6)
|
||||||
SHIFT | CTRL 8 -> ActivateTab(7)
|
SHIFT | CTRL 8 -> ActivateTab(7)
|
||||||
SUPER 8 -> ActivateTab(7)
|
SUPER 8 -> ActivateTab(7)
|
||||||
SHIFT | CTRL 9 -> ActivateTab(-1)
|
SHIFT | CTRL 9 -> ActivateTab(-1)
|
||||||
SUPER 9 -> ActivateTab(-1)
|
SUPER 9 -> ActivateTab(-1)
|
||||||
CTRL = -> IncreaseFontSize
|
CTRL = -> IncreaseFontSize
|
||||||
SHIFT | CTRL = -> IncreaseFontSize
|
SHIFT | CTRL = -> IncreaseFontSize
|
||||||
SUPER = -> IncreaseFontSize
|
SUPER = -> IncreaseFontSize
|
||||||
CTRL @ -> ActivateTab(1)
|
CTRL @ -> ActivateTab(1)
|
||||||
SHIFT | CTRL @ -> ActivateTab(1)
|
SHIFT | CTRL @ -> ActivateTab(1)
|
||||||
CTRL C -> CopyTo(Clipboard)
|
CTRL C -> CopyTo(Clipboard)
|
||||||
SHIFT | CTRL C -> CopyTo(Clipboard)
|
SHIFT | CTRL C -> CopyTo(Clipboard)
|
||||||
CTRL F -> Search(CurrentSelectionOrEmptyString)
|
CTRL F -> Search(CurrentSelectionOrEmptyString)
|
||||||
SHIFT | CTRL F -> Search(CurrentSelectionOrEmptyString)
|
SHIFT | CTRL F -> Search(CurrentSelectionOrEmptyString)
|
||||||
CTRL H -> HideApplication
|
CTRL H -> HideApplication
|
||||||
SHIFT | CTRL H -> HideApplication
|
SHIFT | CTRL H -> HideApplication
|
||||||
CTRL K -> ClearScrollback(ScrollbackOnly)
|
CTRL K -> ClearScrollback(ScrollbackOnly)
|
||||||
SHIFT | CTRL K -> ClearScrollback(ScrollbackOnly)
|
SHIFT | CTRL K -> ClearScrollback(ScrollbackOnly)
|
||||||
CTRL L -> ShowDebugOverlay
|
CTRL L -> ShowDebugOverlay
|
||||||
SHIFT | CTRL L -> ShowDebugOverlay
|
SHIFT | CTRL L -> ShowDebugOverlay
|
||||||
CTRL M -> Hide
|
CTRL M -> Hide
|
||||||
SHIFT | CTRL M -> Hide
|
SHIFT | CTRL M -> Hide
|
||||||
CTRL N -> SpawnWindow
|
CTRL N -> SpawnWindow
|
||||||
SHIFT | CTRL N -> SpawnWindow
|
SHIFT | CTRL N -> SpawnWindow
|
||||||
CTRL P -> ActivateCommandPalette
|
CTRL P -> ActivateCommandPalette
|
||||||
SHIFT | CTRL P -> ActivateCommandPalette
|
SHIFT | CTRL P -> ActivateCommandPalette
|
||||||
CTRL Q -> QuitApplication
|
CTRL Q -> QuitApplication
|
||||||
SHIFT | CTRL Q -> QuitApplication
|
SHIFT | CTRL Q -> QuitApplication
|
||||||
CTRL R -> ReloadConfiguration
|
CTRL R -> ReloadConfiguration
|
||||||
SHIFT | CTRL R -> ReloadConfiguration
|
SHIFT | CTRL R -> ReloadConfiguration
|
||||||
CTRL T -> SpawnTab(CurrentPaneDomain)
|
CTRL T -> SpawnTab(CurrentPaneDomain)
|
||||||
SHIFT | CTRL T -> SpawnTab(CurrentPaneDomain)
|
SHIFT | CTRL T -> SpawnTab(CurrentPaneDomain)
|
||||||
CTRL U -> CharSelect(CharSelectArguments { group: None, copy_on_select: true, copy_to: ClipboardAndPrimarySelection })
|
CTRL U -> CharSelect(CharSelectArguments { group: None, copy_on_select: true, copy_to: ClipboardAndPrimarySelection })
|
||||||
SHIFT | CTRL U -> CharSelect(CharSelectArguments { group: None, copy_on_select: true, copy_to: ClipboardAndPrimarySelection })
|
SHIFT | CTRL U -> CharSelect(CharSelectArguments { group: None, copy_on_select: true, copy_to: ClipboardAndPrimarySelection })
|
||||||
CTRL V -> PasteFrom(Clipboard)
|
CTRL V -> PasteFrom(Clipboard)
|
||||||
SHIFT | CTRL V -> PasteFrom(Clipboard)
|
SHIFT | CTRL V -> PasteFrom(Clipboard)
|
||||||
CTRL W -> CloseCurrentTab { confirm: true }
|
CTRL W -> CloseCurrentTab { confirm: true }
|
||||||
SHIFT | CTRL W -> CloseCurrentTab { confirm: true }
|
SHIFT | CTRL W -> CloseCurrentTab { confirm: true }
|
||||||
CTRL X -> ActivateCopyMode
|
CTRL X -> ActivateCopyMode
|
||||||
SHIFT | CTRL X -> ActivateCopyMode
|
SHIFT | CTRL X -> ActivateCopyMode
|
||||||
CTRL Z -> TogglePaneZoomState
|
CTRL Z -> TogglePaneZoomState
|
||||||
SHIFT | CTRL Z -> TogglePaneZoomState
|
SHIFT | CTRL Z -> TogglePaneZoomState
|
||||||
SHIFT | SUPER [ -> ActivateTabRelative(-1)
|
SHIFT | SUPER [ -> ActivateTabRelative(-1)
|
||||||
SHIFT | SUPER ] -> ActivateTabRelative(1)
|
SHIFT | SUPER ] -> ActivateTabRelative(1)
|
||||||
CTRL ^ -> ActivateTab(5)
|
CTRL ^ -> ActivateTab(5)
|
||||||
SHIFT | CTRL ^ -> ActivateTab(5)
|
SHIFT | CTRL ^ -> ActivateTab(5)
|
||||||
CTRL _ -> DecreaseFontSize
|
CTRL _ -> DecreaseFontSize
|
||||||
SHIFT | CTRL _ -> DecreaseFontSize
|
SHIFT | CTRL _ -> DecreaseFontSize
|
||||||
SHIFT | CTRL c -> CopyTo(Clipboard)
|
SHIFT | CTRL c -> CopyTo(Clipboard)
|
||||||
SUPER c -> CopyTo(Clipboard)
|
SUPER c -> CopyTo(Clipboard)
|
||||||
SHIFT | CTRL f -> Search(CurrentSelectionOrEmptyString)
|
SHIFT | CTRL f -> Search(CurrentSelectionOrEmptyString)
|
||||||
SUPER f -> Search(CurrentSelectionOrEmptyString)
|
SUPER f -> Search(CurrentSelectionOrEmptyString)
|
||||||
SHIFT | CTRL h -> HideApplication
|
SHIFT | CTRL h -> HideApplication
|
||||||
SUPER h -> HideApplication
|
SUPER h -> HideApplication
|
||||||
SHIFT | CTRL k -> ClearScrollback(ScrollbackOnly)
|
SHIFT | CTRL k -> ClearScrollback(ScrollbackOnly)
|
||||||
SUPER k -> ClearScrollback(ScrollbackOnly)
|
SUPER k -> ClearScrollback(ScrollbackOnly)
|
||||||
SHIFT | CTRL l -> ShowDebugOverlay
|
SHIFT | CTRL l -> ShowDebugOverlay
|
||||||
SHIFT | CTRL m -> Hide
|
SHIFT | CTRL m -> Hide
|
||||||
SUPER m -> Hide
|
SUPER m -> Hide
|
||||||
SHIFT | CTRL n -> SpawnWindow
|
SHIFT | CTRL n -> SpawnWindow
|
||||||
SUPER n -> SpawnWindow
|
SUPER n -> SpawnWindow
|
||||||
SHIFT | CTRL p -> ActivateCommandPalette
|
SHIFT | CTRL p -> ActivateCommandPalette
|
||||||
SHIFT | CTRL q -> QuitApplication
|
SHIFT | CTRL q -> QuitApplication
|
||||||
SUPER q -> QuitApplication
|
SUPER q -> QuitApplication
|
||||||
SHIFT | CTRL r -> ReloadConfiguration
|
SHIFT | CTRL r -> ReloadConfiguration
|
||||||
SUPER r -> ReloadConfiguration
|
SUPER r -> ReloadConfiguration
|
||||||
SHIFT | CTRL t -> SpawnTab(CurrentPaneDomain)
|
SHIFT | CTRL t -> SpawnTab(CurrentPaneDomain)
|
||||||
SUPER t -> SpawnTab(CurrentPaneDomain)
|
SUPER t -> SpawnTab(CurrentPaneDomain)
|
||||||
SHIFT | CTRL u -> CharSelect(CharSelectArguments { group: None, copy_on_select: true, copy_to: ClipboardAndPrimarySelection })
|
SHIFT | CTRL u -> CharSelect(CharSelectArguments { group: None, copy_on_select: true, copy_to: ClipboardAndPrimarySelection })
|
||||||
SHIFT | CTRL v -> PasteFrom(Clipboard)
|
SHIFT | CTRL v -> PasteFrom(Clipboard)
|
||||||
SUPER v -> PasteFrom(Clipboard)
|
SUPER v -> PasteFrom(Clipboard)
|
||||||
SHIFT | CTRL w -> CloseCurrentTab { confirm: true }
|
SHIFT | CTRL w -> CloseCurrentTab { confirm: true }
|
||||||
SUPER w -> CloseCurrentTab { confirm: true }
|
SUPER w -> CloseCurrentTab { confirm: true }
|
||||||
SHIFT | CTRL x -> ActivateCopyMode
|
SHIFT | CTRL x -> ActivateCopyMode
|
||||||
SHIFT | CTRL z -> TogglePaneZoomState
|
SHIFT | CTRL z -> TogglePaneZoomState
|
||||||
SUPER { -> ActivateTabRelative(-1)
|
SUPER { -> ActivateTabRelative(-1)
|
||||||
SHIFT | SUPER { -> ActivateTabRelative(-1)
|
SHIFT | SUPER { -> ActivateTabRelative(-1)
|
||||||
SUPER } -> ActivateTabRelative(1)
|
SUPER } -> ActivateTabRelative(1)
|
||||||
SHIFT | SUPER } -> ActivateTabRelative(1)
|
SHIFT | SUPER } -> ActivateTabRelative(1)
|
||||||
SHIFT | CTRL Space (Physical) -> QuickSelect
|
SHIFT | CTRL Space (Physical) -> QuickSelect
|
||||||
SHIFT PageUp -> ScrollByPage(NotNan(-1.0))
|
SHIFT PageUp -> ScrollByPage(NotNan(-1.0))
|
||||||
CTRL PageUp -> ActivateTabRelative(-1)
|
CTRL PageUp -> ActivateTabRelative(-1)
|
||||||
SHIFT | CTRL PageUp -> MoveTabRelative(-1)
|
SHIFT | CTRL PageUp -> MoveTabRelative(-1)
|
||||||
SHIFT PageDown -> ScrollByPage(NotNan(1.0))
|
SHIFT PageDown -> ScrollByPage(NotNan(1.0))
|
||||||
CTRL PageDown -> ActivateTabRelative(1)
|
CTRL PageDown -> ActivateTabRelative(1)
|
||||||
SHIFT | CTRL PageDown -> MoveTabRelative(1)
|
SHIFT | CTRL PageDown -> MoveTabRelative(1)
|
||||||
SHIFT | CTRL LeftArrow -> ActivatePaneDirection(Left)
|
SHIFT | CTRL LeftArrow -> ActivatePaneDirection(Left)
|
||||||
SHIFT | ALT | CTRL LeftArrow -> AdjustPaneSize(Left, 1)
|
SHIFT | ALT | CTRL LeftArrow -> AdjustPaneSize(Left, 1)
|
||||||
SHIFT | CTRL RightArrow -> ActivatePaneDirection(Right)
|
SHIFT | CTRL RightArrow -> ActivatePaneDirection(Right)
|
||||||
SHIFT | ALT | CTRL RightArrow -> AdjustPaneSize(Right, 1)
|
SHIFT | ALT | CTRL RightArrow -> AdjustPaneSize(Right, 1)
|
||||||
SHIFT | CTRL UpArrow -> ActivatePaneDirection(Up)
|
SHIFT | CTRL UpArrow -> ActivatePaneDirection(Up)
|
||||||
SHIFT | ALT | CTRL UpArrow -> AdjustPaneSize(Up, 1)
|
SHIFT | ALT | CTRL UpArrow -> AdjustPaneSize(Up, 1)
|
||||||
SHIFT | CTRL DownArrow -> ActivatePaneDirection(Down)
|
SHIFT | CTRL DownArrow -> ActivatePaneDirection(Down)
|
||||||
SHIFT | ALT | CTRL DownArrow -> AdjustPaneSize(Down, 1)
|
SHIFT | ALT | CTRL DownArrow -> AdjustPaneSize(Down, 1)
|
||||||
Copy -> CopyTo(Clipboard)
|
Copy -> CopyTo(Clipboard)
|
||||||
Paste -> PasteFrom(Clipboard)
|
Paste -> PasteFrom(Clipboard)
|
||||||
|
|
||||||
Key Table: copy_mode
|
Key Table: copy_mode
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
Tab -> CopyMode(MoveForwardWord)
|
Tab -> CopyMode(MoveForwardWord)
|
||||||
SHIFT Tab -> CopyMode(MoveBackwardWord)
|
SHIFT Tab -> CopyMode(MoveBackwardWord)
|
||||||
Enter -> CopyMode(MoveToStartOfNextLine)
|
Enter -> CopyMode(MoveToStartOfNextLine)
|
||||||
Escape -> CopyMode(Close)
|
Escape -> CopyMode(Close)
|
||||||
Space -> CopyMode(SetSelectionMode(Some(Cell)))
|
Space -> CopyMode(SetSelectionMode(Some(Cell)))
|
||||||
$ -> CopyMode(MoveToEndOfLineContent)
|
$ -> CopyMode(MoveToEndOfLineContent)
|
||||||
SHIFT $ -> CopyMode(MoveToEndOfLineContent)
|
SHIFT $ -> CopyMode(MoveToEndOfLineContent)
|
||||||
, -> CopyMode(JumpReverse)
|
, -> CopyMode(JumpReverse)
|
||||||
0 -> CopyMode(MoveToStartOfLine)
|
0 -> CopyMode(MoveToStartOfLine)
|
||||||
; -> CopyMode(JumpAgain)
|
; -> CopyMode(JumpAgain)
|
||||||
F -> CopyMode(JumpBackward { prev_char: false })
|
F -> CopyMode(JumpBackward { prev_char: false })
|
||||||
SHIFT F -> CopyMode(JumpBackward { prev_char: false })
|
SHIFT F -> CopyMode(JumpBackward { prev_char: false })
|
||||||
G -> CopyMode(MoveToScrollbackBottom)
|
G -> CopyMode(MoveToScrollbackBottom)
|
||||||
SHIFT G -> CopyMode(MoveToScrollbackBottom)
|
SHIFT G -> CopyMode(MoveToScrollbackBottom)
|
||||||
H -> CopyMode(MoveToViewportTop)
|
H -> CopyMode(MoveToViewportTop)
|
||||||
SHIFT H -> CopyMode(MoveToViewportTop)
|
SHIFT H -> CopyMode(MoveToViewportTop)
|
||||||
L -> CopyMode(MoveToViewportBottom)
|
L -> CopyMode(MoveToViewportBottom)
|
||||||
SHIFT L -> CopyMode(MoveToViewportBottom)
|
SHIFT L -> CopyMode(MoveToViewportBottom)
|
||||||
M -> CopyMode(MoveToViewportMiddle)
|
M -> CopyMode(MoveToViewportMiddle)
|
||||||
SHIFT M -> CopyMode(MoveToViewportMiddle)
|
SHIFT M -> CopyMode(MoveToViewportMiddle)
|
||||||
O -> CopyMode(MoveToSelectionOtherEndHoriz)
|
O -> CopyMode(MoveToSelectionOtherEndHoriz)
|
||||||
SHIFT O -> CopyMode(MoveToSelectionOtherEndHoriz)
|
SHIFT O -> CopyMode(MoveToSelectionOtherEndHoriz)
|
||||||
T -> CopyMode(JumpBackward { prev_char: true })
|
T -> CopyMode(JumpBackward { prev_char: true })
|
||||||
SHIFT T -> CopyMode(JumpBackward { prev_char: true })
|
SHIFT T -> CopyMode(JumpBackward { prev_char: true })
|
||||||
V -> CopyMode(SetSelectionMode(Some(Line)))
|
V -> CopyMode(SetSelectionMode(Some(Line)))
|
||||||
SHIFT V -> CopyMode(SetSelectionMode(Some(Line)))
|
SHIFT V -> CopyMode(SetSelectionMode(Some(Line)))
|
||||||
^ -> CopyMode(MoveToStartOfLineContent)
|
^ -> CopyMode(MoveToStartOfLineContent)
|
||||||
SHIFT ^ -> CopyMode(MoveToStartOfLineContent)
|
SHIFT ^ -> CopyMode(MoveToStartOfLineContent)
|
||||||
b -> CopyMode(MoveBackwardWord)
|
b -> CopyMode(MoveBackwardWord)
|
||||||
ALT b -> CopyMode(MoveBackwardWord)
|
ALT b -> CopyMode(MoveBackwardWord)
|
||||||
CTRL b -> CopyMode(PageUp)
|
CTRL b -> CopyMode(PageUp)
|
||||||
CTRL c -> CopyMode(Close)
|
CTRL c -> CopyMode(Close)
|
||||||
CTRL d -> CopyMode(MoveByPage(NotNan(0.5)))
|
CTRL d -> CopyMode(MoveByPage(NotNan(0.5)))
|
||||||
e -> CopyMode(MoveForwardWordEnd)
|
e -> CopyMode(MoveForwardWordEnd)
|
||||||
f -> CopyMode(JumpForward { prev_char: false })
|
f -> CopyMode(JumpForward { prev_char: false })
|
||||||
ALT f -> CopyMode(MoveForwardWord)
|
ALT f -> CopyMode(MoveForwardWord)
|
||||||
CTRL f -> CopyMode(PageDown)
|
CTRL f -> CopyMode(PageDown)
|
||||||
g -> CopyMode(MoveToScrollbackTop)
|
g -> CopyMode(MoveToScrollbackTop)
|
||||||
CTRL g -> CopyMode(Close)
|
CTRL g -> CopyMode(Close)
|
||||||
h -> CopyMode(MoveLeft)
|
h -> CopyMode(MoveLeft)
|
||||||
j -> CopyMode(MoveDown)
|
j -> CopyMode(MoveDown)
|
||||||
k -> CopyMode(MoveUp)
|
k -> CopyMode(MoveUp)
|
||||||
l -> CopyMode(MoveRight)
|
l -> CopyMode(MoveRight)
|
||||||
ALT m -> CopyMode(MoveToStartOfLineContent)
|
ALT m -> CopyMode(MoveToStartOfLineContent)
|
||||||
o -> CopyMode(MoveToSelectionOtherEnd)
|
o -> CopyMode(MoveToSelectionOtherEnd)
|
||||||
q -> CopyMode(Close)
|
q -> CopyMode(Close)
|
||||||
t -> CopyMode(JumpForward { prev_char: true })
|
t -> CopyMode(JumpForward { prev_char: true })
|
||||||
CTRL u -> CopyMode(MoveByPage(NotNan(-0.5)))
|
CTRL u -> CopyMode(MoveByPage(NotNan(-0.5)))
|
||||||
v -> CopyMode(SetSelectionMode(Some(Cell)))
|
v -> CopyMode(SetSelectionMode(Some(Cell)))
|
||||||
CTRL v -> CopyMode(SetSelectionMode(Some(Block)))
|
CTRL v -> CopyMode(SetSelectionMode(Some(Block)))
|
||||||
w -> CopyMode(MoveForwardWord)
|
w -> CopyMode(MoveForwardWord)
|
||||||
y -> Multiple([CopyTo(ClipboardAndPrimarySelection), CopyMode(Close)])
|
y -> Multiple([CopyTo(ClipboardAndPrimarySelection), CopyMode(Close)])
|
||||||
PageUp -> CopyMode(PageUp)
|
PageUp -> CopyMode(PageUp)
|
||||||
PageDown -> CopyMode(PageDown)
|
PageDown -> CopyMode(PageDown)
|
||||||
End -> CopyMode(MoveToEndOfLineContent)
|
End -> CopyMode(MoveToEndOfLineContent)
|
||||||
Home -> CopyMode(MoveToStartOfLine)
|
Home -> CopyMode(MoveToStartOfLine)
|
||||||
LeftArrow -> CopyMode(MoveLeft)
|
LeftArrow -> CopyMode(MoveLeft)
|
||||||
ALT LeftArrow -> CopyMode(MoveBackwardWord)
|
ALT LeftArrow -> CopyMode(MoveBackwardWord)
|
||||||
RightArrow -> CopyMode(MoveRight)
|
RightArrow -> CopyMode(MoveRight)
|
||||||
ALT RightArrow -> CopyMode(MoveForwardWord)
|
ALT RightArrow -> CopyMode(MoveForwardWord)
|
||||||
UpArrow -> CopyMode(MoveUp)
|
UpArrow -> CopyMode(MoveUp)
|
||||||
DownArrow -> CopyMode(MoveDown)
|
DownArrow -> CopyMode(MoveDown)
|
||||||
|
|
||||||
Key Table: search_mode
|
Key Table: search_mode
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
Enter -> CopyMode(PriorMatch)
|
Enter -> CopyMode(PriorMatch)
|
||||||
Escape -> CopyMode(Close)
|
Escape -> CopyMode(Close)
|
||||||
CTRL n -> CopyMode(NextMatch)
|
CTRL n -> CopyMode(NextMatch)
|
||||||
CTRL p -> CopyMode(PriorMatch)
|
CTRL p -> CopyMode(PriorMatch)
|
||||||
CTRL r -> CopyMode(CycleMatchType)
|
CTRL r -> CopyMode(CycleMatchType)
|
||||||
CTRL u -> CopyMode(ClearPattern)
|
CTRL u -> CopyMode(ClearPattern)
|
||||||
PageUp -> CopyMode(PriorMatchPage)
|
PageUp -> CopyMode(PriorMatchPage)
|
||||||
PageDown -> CopyMode(NextMatchPage)
|
PageDown -> CopyMode(NextMatchPage)
|
||||||
UpArrow -> CopyMode(PriorMatch)
|
UpArrow -> CopyMode(PriorMatch)
|
||||||
DownArrow -> CopyMode(NextMatch)
|
DownArrow -> CopyMode(NextMatch)
|
||||||
|
|
||||||
Mouse
|
Mouse
|
||||||
-----
|
-----
|
||||||
|
|
||||||
Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Cell)
|
Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Cell)
|
||||||
SHIFT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
SHIFT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
||||||
ALT Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Block)
|
ALT Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Block)
|
||||||
SHIFT | ALT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
SHIFT | ALT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
||||||
Down { streak: 1, button: Middle } -> PasteFrom(PrimarySelection)
|
Down { streak: 1, button: Middle } -> PasteFrom(PrimarySelection)
|
||||||
Down { streak: 1, button: WheelUp(1) } -> ScrollByCurrentEventWheelDelta
|
Down { streak: 1, button: WheelUp(1) } -> ScrollByCurrentEventWheelDelta
|
||||||
Down { streak: 1, button: WheelDown(1) } -> ScrollByCurrentEventWheelDelta
|
Down { streak: 1, button: WheelDown(1) } -> ScrollByCurrentEventWheelDelta
|
||||||
Down { streak: 2, button: Left } -> SelectTextAtMouseCursor(Word)
|
Down { streak: 2, button: Left } -> SelectTextAtMouseCursor(Word)
|
||||||
Down { streak: 3, button: Left } -> SelectTextAtMouseCursor(Line)
|
Down { streak: 3, button: Left } -> SelectTextAtMouseCursor(Line)
|
||||||
Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
||||||
ALT Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
ALT Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
||||||
SHIFT | CTRL Drag { streak: 1, button: Left } -> StartWindowDrag
|
SHIFT | CTRL Drag { streak: 1, button: Left } -> StartWindowDrag
|
||||||
SUPER Drag { streak: 1, button: Left } -> StartWindowDrag
|
SUPER Drag { streak: 1, button: Left } -> StartWindowDrag
|
||||||
Drag { streak: 2, button: Left } -> ExtendSelectionToMouseCursor(Word)
|
Drag { streak: 2, button: Left } -> ExtendSelectionToMouseCursor(Word)
|
||||||
Drag { streak: 3, button: Left } -> ExtendSelectionToMouseCursor(Line)
|
Drag { streak: 3, button: Left } -> ExtendSelectionToMouseCursor(Line)
|
||||||
Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
||||||
SHIFT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
SHIFT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
||||||
ALT Up { streak: 1, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
ALT Up { streak: 1, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
||||||
SHIFT | ALT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(PrimarySelection)
|
SHIFT | ALT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(PrimarySelection)
|
||||||
Up { streak: 2, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
Up { streak: 2, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
||||||
Up { streak: 3, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
Up { streak: 3, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
||||||
|
|
||||||
Mouse: alt_screen
|
Mouse: alt_screen
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Cell)
|
Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Cell)
|
||||||
SHIFT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
SHIFT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
||||||
ALT Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Block)
|
ALT Down { streak: 1, button: Left } -> SelectTextAtMouseCursor(Block)
|
||||||
SHIFT | ALT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
SHIFT | ALT Down { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
||||||
Down { streak: 1, button: Middle } -> PasteFrom(PrimarySelection)
|
Down { streak: 1, button: Middle } -> PasteFrom(PrimarySelection)
|
||||||
Down { streak: 2, button: Left } -> SelectTextAtMouseCursor(Word)
|
Down { streak: 2, button: Left } -> SelectTextAtMouseCursor(Word)
|
||||||
Down { streak: 3, button: Left } -> SelectTextAtMouseCursor(Line)
|
Down { streak: 3, button: Left } -> SelectTextAtMouseCursor(Line)
|
||||||
Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Cell)
|
||||||
ALT Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
ALT Drag { streak: 1, button: Left } -> ExtendSelectionToMouseCursor(Block)
|
||||||
SHIFT | CTRL Drag { streak: 1, button: Left } -> StartWindowDrag
|
SHIFT | CTRL Drag { streak: 1, button: Left } -> StartWindowDrag
|
||||||
SUPER Drag { streak: 1, button: Left } -> StartWindowDrag
|
SUPER Drag { streak: 1, button: Left } -> StartWindowDrag
|
||||||
Drag { streak: 2, button: Left } -> ExtendSelectionToMouseCursor(Word)
|
Drag { streak: 2, button: Left } -> ExtendSelectionToMouseCursor(Word)
|
||||||
Drag { streak: 3, button: Left } -> ExtendSelectionToMouseCursor(Line)
|
Drag { streak: 3, button: Left } -> ExtendSelectionToMouseCursor(Line)
|
||||||
Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
||||||
SHIFT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
SHIFT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(ClipboardAndPrimarySelection)
|
||||||
ALT Up { streak: 1, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
ALT Up { streak: 1, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
||||||
SHIFT | ALT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(PrimarySelection)
|
SHIFT | ALT Up { streak: 1, button: Left } -> CompleteSelectionOrOpenLinkAtMouseCursor(PrimarySelection)
|
||||||
Up { streak: 2, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
Up { streak: 2, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
||||||
Up { streak: 3, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
Up { streak: 3, button: Left } -> CompleteSelection(ClipboardAndPrimarySelection)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ section_install()
|
|||||||
;;
|
;;
|
||||||
asdf)
|
asdf)
|
||||||
msg "Installing asdf..."
|
msg "Installing asdf..."
|
||||||
bash "$DOTFILES/scripts/install-asdf.sh" \
|
bash "$DOTFILES/scripts/install-asdf.sh both" \
|
||||||
&& msg_yay "asdf installed!"
|
&& msg_yay "asdf installed!"
|
||||||
;;
|
;;
|
||||||
cargo)
|
cargo)
|
||||||
|
|||||||
99
local/bin/x-term-colors
Executable file
99
local/bin/x-term-colors
Executable file
@@ -0,0 +1,99 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# This file echoes a bunch of 24-bit color codes
|
||||||
|
# to the terminal to demonstrate its functionality.
|
||||||
|
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
|
||||||
|
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
|
||||||
|
# <r> <g> <b> range from 0 to 255 inclusive.
|
||||||
|
# The escape sequence ^[0m returns output to default
|
||||||
|
|
||||||
|
setBackgroundColor()
|
||||||
|
{
|
||||||
|
echo -en "\x1b[48;2;$1;$2;$3""m"
|
||||||
|
}
|
||||||
|
|
||||||
|
resetOutput()
|
||||||
|
{
|
||||||
|
echo -en "\x1b[0m\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Gives a color $1/255 % along HSV
|
||||||
|
# Who knows what happens when $1 is outside 0-255
|
||||||
|
# Echoes "$red $green $blue" where
|
||||||
|
# $red $green and $blue are integers
|
||||||
|
# ranging between 0 and 255 inclusive
|
||||||
|
rainbowColor()
|
||||||
|
{
|
||||||
|
let h=$1/43
|
||||||
|
let f=$1-43*$h
|
||||||
|
let t=$f*255/43
|
||||||
|
let q=255-t
|
||||||
|
|
||||||
|
if [ $h -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "255 $t 0"
|
||||||
|
elif [ $h -eq 1 ]
|
||||||
|
then
|
||||||
|
echo "$q 255 0"
|
||||||
|
elif [ $h -eq 2 ]
|
||||||
|
then
|
||||||
|
echo "0 255 $t"
|
||||||
|
elif [ $h -eq 3 ]
|
||||||
|
then
|
||||||
|
echo "0 $q 255"
|
||||||
|
elif [ $h -eq 4 ]
|
||||||
|
then
|
||||||
|
echo "$t 0 255"
|
||||||
|
elif [ $h -eq 5 ]
|
||||||
|
then
|
||||||
|
echo "255 0 $q"
|
||||||
|
else
|
||||||
|
# execution should never reach here
|
||||||
|
echo "0 0 0"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
for i in $(seq 0 127); do
|
||||||
|
setBackgroundColor "$i" 0 0
|
||||||
|
echo -en " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
for i in $(seq 255 128); do
|
||||||
|
setBackgroundColor "$i" 0 0
|
||||||
|
echo -en " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
|
||||||
|
for i in $(seq 0 127); do
|
||||||
|
setBackgroundColor 0 "$i" 0
|
||||||
|
echo -n " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
for i in $(seq 255 128); do
|
||||||
|
setBackgroundColor 0 "$i" 0
|
||||||
|
echo -n " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
|
||||||
|
for i in $(seq 0 127); do
|
||||||
|
setBackgroundColor 0 0 "$i"
|
||||||
|
echo -n " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
for i in $(seq 255 128); do
|
||||||
|
setBackgroundColor 0 0 "$i"
|
||||||
|
echo -n " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
|
||||||
|
for i in $(seq 0 127); do
|
||||||
|
setBackgroundColor $(rainbowColor "$i")
|
||||||
|
echo -n " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
for i in $(seq 255 128); do
|
||||||
|
setBackgroundColor $(rainbowColor "$i")
|
||||||
|
echo -n " "
|
||||||
|
done
|
||||||
|
resetOutput
|
||||||
|
|
||||||
@@ -1,6 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Install asdf
|
# Install asdf and plugins I use
|
||||||
|
#
|
||||||
|
# It also updates asdf and the plugins, and then reshim asdf.
|
||||||
|
#
|
||||||
|
# Usage: ./install-asdf.sh [both|install|add_plugins]
|
||||||
|
# Author: Ismo Vuorinen <https://github.com/ivuorinen>
|
||||||
|
# License: MIT
|
||||||
|
#
|
||||||
source "${DOTFILES}/config/shared.sh"
|
source "${DOTFILES}/config/shared.sh"
|
||||||
|
|
||||||
export ASDF_DIR="${XDG_BIN_HOME}/asdf"
|
export ASDF_DIR="${XDG_BIN_HOME}/asdf"
|
||||||
@@ -12,8 +19,6 @@ msg "Sourcing asdf in your shell"
|
|||||||
# Function to update asdf and plugins
|
# Function to update asdf and plugins
|
||||||
update_asdf()
|
update_asdf()
|
||||||
{
|
{
|
||||||
asdf update
|
|
||||||
|
|
||||||
asdf plugin add asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git
|
asdf plugin add asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git
|
||||||
asdf install asdf-plugin-manager latest
|
asdf install asdf-plugin-manager latest
|
||||||
asdf global asdf-plugin-manager "$(asdf latest asdf-plugin-manager)"
|
asdf global asdf-plugin-manager "$(asdf latest asdf-plugin-manager)"
|
||||||
@@ -21,58 +26,91 @@ update_asdf()
|
|||||||
asdf-plugin-manager add-all
|
asdf-plugin-manager add-all
|
||||||
|
|
||||||
asdf install
|
asdf install
|
||||||
}
|
|
||||||
|
|
||||||
ASDF_INSTALLABLES=(
|
return 0
|
||||||
"1password-cli:github.com/NeoHsu/asdf-1password-cli.git"
|
}
|
||||||
"age:github.com/threkk/asdf-age.git"
|
|
||||||
"bottom:github.com/carbonteq/asdf-btm.git"
|
|
||||||
"direnv:github.com/asdf-community/asdf-direnv.git"
|
|
||||||
"dotenv-linter:github.com/wesleimp/asdf-dotenv-linter.git"
|
|
||||||
"editorconfig-checker:github.com/gabitchov/asdf-editorconfig-checker.git"
|
|
||||||
"eza:github.com/lwiechec/asdf-eza.git"
|
|
||||||
"fd:gitlab.com/wt0f/asdf-fd.git"
|
|
||||||
"github-cli:github.com/bartlomiejdanek/asdf-github-cli.git"
|
|
||||||
"golang:github.com/asdf-community/asdf-golang.git"
|
|
||||||
"hadolint:github.com/devlincashman/asdf-hadolint.git"
|
|
||||||
"kubectl:github.com/asdf-community/asdf-kubectl.git"
|
|
||||||
"lazygit:github.com/nklmilojevic/asdf-lazygit.git"
|
|
||||||
"nodejs:github.com/asdf-vm/asdf-nodejs.git"
|
|
||||||
"pipx:github.com/yozachar/asdf-pipx.git"
|
|
||||||
"pre-commit:github.com/jonathanmorley/asdf-pre-commit.git"
|
|
||||||
"ripgrep:gitlab.com/wt0f/asdf-ripgrep.git"
|
|
||||||
"rust:github.com/code-lever/asdf-rust.git"
|
|
||||||
"semgrep:github.com/brentjanderson/asdf-semgrep.git"
|
|
||||||
"shellcheck:github.com/luizm/asdf-shellcheck.git"
|
|
||||||
"shfmt:github.com/luizm/asdf-shfmt.git"
|
|
||||||
"terraform-ls:github.com/asdf-community/asdf-hashicorp.git"
|
|
||||||
"terraform-lsp:github.com/bartlomiejdanek/asdf-terraform-lsp.git"
|
|
||||||
"terragrunt:github.com/ohmer/asdf-terragrunt.git"
|
|
||||||
"tf-summarize:github.com/adamcrews/asdf-tf-summarize.git"
|
|
||||||
"vault:github.com/asdf-community/asdf-hashicorp.git"
|
|
||||||
"yamllint:github.com/ericcornelissen/asdf-yamllint.git"
|
|
||||||
"yq:github.com/sudermanjr/asdf-yq.git"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Function to install asdf plugins
|
# Function to install asdf plugins
|
||||||
install_asdf_plugins()
|
install_asdf_plugins()
|
||||||
{
|
{
|
||||||
msg "Installing asdf plugins, if not already installed"
|
ASDF_INSTALLABLES=(
|
||||||
|
"1password-cli:github.com/NeoHsu/asdf-1password-cli.git"
|
||||||
|
"age:github.com/threkk/asdf-age.git"
|
||||||
|
"bottom:github.com/carbonteq/asdf-btm.git"
|
||||||
|
"direnv:github.com/asdf-community/asdf-direnv.git"
|
||||||
|
"dotenv-linter:github.com/wesleimp/asdf-dotenv-linter.git"
|
||||||
|
"editorconfig-checker:github.com/gabitchov/asdf-editorconfig-checker.git"
|
||||||
|
"eza:github.com/lwiechec/asdf-eza.git"
|
||||||
|
"fd:gitlab.com/wt0f/asdf-fd.git"
|
||||||
|
"github-cli:github.com/bartlomiejdanek/asdf-github-cli.git"
|
||||||
|
"golang:github.com/asdf-community/asdf-golang.git"
|
||||||
|
"hadolint:github.com/devlincashman/asdf-hadolint.git"
|
||||||
|
"kubectl:github.com/asdf-community/asdf-kubectl.git"
|
||||||
|
"lazygit:github.com/nklmilojevic/asdf-lazygit.git"
|
||||||
|
"nodejs:github.com/asdf-vm/asdf-nodejs.git"
|
||||||
|
"pipx:github.com/yozachar/asdf-pipx.git"
|
||||||
|
"pre-commit:github.com/jonathanmorley/asdf-pre-commit.git"
|
||||||
|
"python:github.com/asdf-community/asdf-python.git"
|
||||||
|
"ripgrep:gitlab.com/wt0f/asdf-ripgrep.git"
|
||||||
|
"rust:github.com/code-lever/asdf-rust.git"
|
||||||
|
"shellcheck:github.com/luizm/asdf-shellcheck.git"
|
||||||
|
"shfmt:github.com/luizm/asdf-shfmt.git"
|
||||||
|
"terragrunt:github.com/ohmer/asdf-terragrunt.git"
|
||||||
|
"tf-summarize:github.com/adamcrews/asdf-tf-summarize.git"
|
||||||
|
"yamllint:github.com/ericcornelissen/asdf-yamllint.git"
|
||||||
|
"yq:github.com/sudermanjr/asdf-yq.git"
|
||||||
|
)
|
||||||
|
|
||||||
|
msg "Installing asdf plugins"
|
||||||
for item in "${ASDF_INSTALLABLES[@]}"; do
|
for item in "${ASDF_INSTALLABLES[@]}"; do
|
||||||
CMD=$(echo "${item}" | awk -F ":" '{print $1}')
|
CMD=$(echo "${item}" | awk -F ":" '{print $1}')
|
||||||
URL=$(echo "${item}" | awk -F ":" '{print $2}')
|
URL=$(echo "${item}" | awk -F ":" '{print $2}')
|
||||||
|
|
||||||
asdf plugin add "${CMD}" "https://${URL}"
|
asdf plugin add "${CMD}" "https://${URL}"
|
||||||
asdf install "${CMD}" latest
|
asdf install "${CMD}" latest
|
||||||
asdf global "${CMD}" "$(asdf latest "${CMD}")"
|
asdf global "${CMD}" "$(asdf latest "${CMD}")"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
msg "Exporting asdf plugin versions"
|
||||||
|
asdf-plugin-manager export > "${XDG_CONFIG_HOME}/asdf/plugin-versions"
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
reshim()
|
||||||
|
{
|
||||||
|
msg "Reshim asdf"
|
||||||
|
asdf reshim
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# create usage function
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
echo "Usage: $0 [both|install|add_plugins]"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
update_asdf
|
case $1 in
|
||||||
install_asdf_plugins
|
"both")
|
||||||
msg "Reshim asdf"
|
install_asdf_plugins
|
||||||
asdf reshim
|
update_asdf
|
||||||
|
reshim
|
||||||
|
;;
|
||||||
|
"install")
|
||||||
|
update_asdf
|
||||||
|
reshim
|
||||||
|
;;
|
||||||
|
"add_plugins")
|
||||||
|
install_asdf_plugins
|
||||||
|
reshim
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
# Install cargo/rust packages.
|
# Install cargo/rust packages.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
|
|
||||||
|
echo "This file has been deprecated in favor of asdf. Please use asdf instead."
|
||||||
|
exit 0
|
||||||
|
|
||||||
eval "$HOME/.dotfiles/config/shared.sh"
|
eval "$HOME/.dotfiles/config/shared.sh"
|
||||||
|
|
||||||
msg "Starting to install rust/cargo packages"
|
msg "Starting to install rust/cargo packages"
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
# Install Go packages
|
# Install Go packages
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
|
|
||||||
|
echo "This file has been deprecated in favor of asdf. Please use asdf instead."
|
||||||
|
exit 0
|
||||||
|
|
||||||
eval "$DOTFILES/config/shared.sh"
|
eval "$DOTFILES/config/shared.sh"
|
||||||
|
|
||||||
# Enable verbosity with VERBOSE=1
|
# Enable verbosity with VERBOSE=1
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
# Install npm packages globally.
|
# Install npm packages globally.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
|
|
||||||
|
echo "This file has been deprecated in favor of asdf. Please use asdf instead."
|
||||||
|
exit 0
|
||||||
|
|
||||||
eval "$DOTFILES/config/shared.sh"
|
eval "$DOTFILES/config/shared.sh"
|
||||||
|
|
||||||
# Enable verbosity with VERBOSE=1
|
# Enable verbosity with VERBOSE=1
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
# Install python/pip packages.
|
# Install python/pip packages.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
|
|
||||||
|
echo "This file has been deprecated in favor of asdf. Please use asdf instead."
|
||||||
|
exit 0
|
||||||
|
|
||||||
source "${DOTFILES}/config/shared.sh"
|
source "${DOTFILES}/config/shared.sh"
|
||||||
|
|
||||||
# Enable verbosity with VERBOSE=1
|
# Enable verbosity with VERBOSE=1
|
||||||
|
|||||||
Reference in New Issue
Block a user