Compare commits

...

34 Commits

Author SHA1 Message Date
ivuorinen
95d358ae3d chore(git): Update submodules (automated)
config/nvim v3.33.5
2023-07-22 03:04:25 +00:00
ivuorinen
cea61a5719 chore(git): Update submodules (automated)
config/nvim v3.33.4
2023-07-19 03:36:20 +00:00
ivuorinen
28c29d94f2 chore(git): Update submodules (automated)
config/nvim v3.33.3
2023-07-18 03:11:59 +00:00
ivuorinen
1028d3847c chore(git): Update submodules (automated)
config/nvim v3.33.1
2023-07-17 03:16:42 +00:00
3498c6b739 fix(tools): update git dirty without parameters 2023-07-13 17:07:18 +03:00
83eb7d861e feat(tools): sha256-matcher, cheat script tweaks 2023-07-12 22:44:08 +03:00
22090129ec feat(tools): dfm brew install tweaks 2023-07-12 21:19:18 +03:00
ivuorinen
5b0ca2a63b chore(git): Update submodules (automated)
config/nvim v3.32.0
2023-07-12 03:12:30 +00:00
ivuorinen
c5fa136a1f chore(git): Update submodules (automated)
dotbot v1.19.2
2023-07-10 03:16:15 +00:00
ivuorinen
9a63aaff74 chore(git): Update submodules (automated)
config/nvim v3.31.2
2023-07-08 03:15:59 +00:00
5e68077ac2 chore(nvim): Tweaks to the packages and configs 2023-07-08 02:56:44 +03:00
72b9acd710 chore(tools): Drop phpcs and use composer based 2023-07-08 01:12:33 +03:00
ivuorinen
469044bb2a chore(git): Update submodules (automated)
config/nvim v3.31.1
2023-07-07 03:14:04 +00:00
ivuorinen
96a362474c chore(git): Update submodules (automated)
config/nvim v3.30.7
2023-07-06 03:16:32 +00:00
ivuorinen
1b9dfac671 chore(git): Update submodules (automated)
config/nvim v3.30.4
2023-07-05 03:14:59 +00:00
ivuorinen
7dbaf8204b chore(git): Update submodules (automated)
config/nvim v3.30.2
2023-07-04 03:15:19 +00:00
ivuorinen
415d7d9026 chore(git): Update submodules (automated)
config/nvim v3.30.0
2023-07-02 03:15:34 +00:00
ivuorinen
6734d3c1ab chore(git): Update submodules (automated)
config/nvim v3.29.5
2023-06-30 03:09:11 +00:00
ivuorinen
b20d08aa69 chore(git): Update submodules (automated)
config/nvim v3.29.3
2023-06-29 03:11:44 +00:00
ivuorinen
e4da7534f8 chore(git): Update submodules (automated)
config/nvim v3.28.3
2023-06-27 03:15:32 +00:00
b39f7ec598 chore(brew): Update Brewfile 2023-06-26 12:13:39 +03:00
ivuorinen
0f8c1ef457 chore(git): Update submodules (automated)
config/nvim v3.27.1
2023-06-24 03:14:34 +00:00
ivuorinen
4b31ad9a7b chore(git): Update submodules (automated)
config/nvim v3.26.0
2023-06-23 03:16:40 +00:00
4d60d15831 feat(config): Added git recent alias 2023-06-22 14:50:06 +03:00
ivuorinen
90125c7278 chore(git): Update submodules (automated)
config/nvim v3.25.0
2023-06-22 03:04:44 +00:00
0035575f8b chore(brew): Update Brewfile 2023-06-21 23:04:43 +03:00
ivuorinen
865c0aa33b chore(git): Update submodules (automated)
config/nvim v3.24.1
2023-06-20 03:04:55 +00:00
renovate[bot]
5fe7bc3527 chore(deps): update python docker tag to v3.11 (#8)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-18 22:05:47 +03:00
0d1b35ef09 chore(config): Update Python version to 3.10 2023-06-18 21:44:13 +03:00
ivuorinen
bee0340493 chore(git): Update submodules (automated)
config/nvim v3.23.1
2023-06-16 03:04:43 +00:00
fbdc9c741a chore(astronvim): Tweaked neo-tree configurations 2023-06-14 08:51:40 +03:00
0ac0d05db6 chore(config): Update iterm2 configuration 2023-06-14 01:13:24 +03:00
1c432da880 chore(brew): Update Brewfile 2023-06-13 08:30:49 +03:00
ivuorinen
7e0cc9ec43 chore(git): Update submodules (automated)
config/nvim v3.22.1
2023-06-13 03:04:47 +00:00
22 changed files with 328 additions and 131 deletions

View File

@@ -1 +1 @@
3
3.11

View File

@@ -6,9 +6,7 @@ tap "gesquive/tap"
tap "github/gh"
tap "homebrew/autoupdate"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "jesseduffield/lazygit"
tap "mongodb/brew"
@@ -16,7 +14,7 @@ tap "shivammathur/extensions"
tap "shivammathur/php"
tap "teamookla/speedtest"
tap "xwmx/taps"
# Run your GitHub Actions locally 🚀
# Run your GitHub Actions locally
brew "act"
# Interpreted, interactive, object-oriented programming language
brew "python@3.11"
@@ -31,15 +29,13 @@ brew "arkade"
# Automatic configure script builder
brew "autoconf"
# GNU File, Shell, and Text utilities
brew "coreutils"
brew "coreutils", link: false
# Extendable version manager with support for Ruby, Node.js, Erlang & more
brew "asdf"
# Spell checker with better logic than ispell
brew "aspell"
# Official Amazon AWS command-line interface
brew "awscli"
# Terminal bandwidth utilization tool
brew "bandwhich"
# Clone of cat(1) with syntax highlighting and Git integration
brew "bat"
# Yet another cross-platform graphical process/system monitor
@@ -54,6 +50,8 @@ brew "pkg-config"
brew "choose-rust"
# Cross-platform make
brew "cmake"
# Dependency manager for Cocoa projects
brew "cocoapods"
# Get, unpack, build, and install modules from CPAN
brew "cpanminus"
# Open source suite of directory software
@@ -74,10 +72,14 @@ brew "dotenv-linter"
brew "editorconfig-checker"
# Useful examples at the command-line
brew "eg-examples"
# C/C++ and Java libraries for Unicode and globalization
brew "icu4c"
# OpenType text shaping engine
brew "harfbuzz"
# Development kit for the Java programming language
brew "openjdk"
# Run arbitrary commands when files change
brew "entr"
# CLI for templating and/or deploying FaaS functions
brew "faas-cli"
# Simple, fast and user-friendly alternative to find
brew "fd"
# Banner-like program prints strings as ASCII art
@@ -91,15 +93,13 @@ brew "fzf"
# Graphics library to dynamically manipulate images
brew "gd"
# Disk usage analyzer with console interface written in Go
brew "gdu", link: false
brew "gdu"
# GitHub command-line tool
brew "gh"
# Distributed revision control system
brew "git"
# Small git utilities
brew "git-extras"
# AVH edition of git-flow
brew "git-flow-avh"
# See your latest local git branches, formatted real fancy
brew "git-recent"
# Open-source GitLab command-line tool
@@ -118,10 +118,6 @@ brew "gnupg"
brew "go"
# Image manipulation
brew "netpbm"
# C/C++ and Java libraries for Unicode and globalization
brew "icu4c"
# OpenType text shaping engine
brew "harfbuzz"
# Framework for layout and rendering of i18n text
brew "pango"
# Library to render SVG files using Cairo
@@ -160,12 +156,8 @@ brew "luarocks"
brew "m-cli"
# Mac App Store command-line interface
brew "mas"
# Terminal-based visual file manager
brew "midnight-commander"
# Ambitious Vim-fork focused on extensibility and agility
brew "neovim"
# No Nonsense Neovim Client in Rust
brew "neovide", link: false
# HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
brew "nginx"
# Port scanning utility for large networks
@@ -200,6 +192,8 @@ brew "rcm"
brew "ripgrep"
# Powerful, clean, object-oriented scripting language
brew "ruby"
# Safe, concurrent, practical language
brew "rust"
# Static analysis and lint tool, for (ba)sh scripts
brew "shellcheck"
# Autoformat shell script source code
@@ -208,14 +202,8 @@ brew "shfmt"
brew "starship"
# Version control system designed to be a better CVS
brew "subversion"
# Feature-rich console based todo list manager
brew "task"
# Terminal user interface for taskwarrior
brew "taskwarrior-tui"
# Send macOS User Notifications from the command-line
brew "terminal-notifier", link: false
# Tool to build, change, and version infrastructure
brew "terraform", link: false
brew "terminal-notifier"
# Thin wrapper for Terraform e.g. for locking state
brew "terragrunt"
# Tool which checks for the support of TLS/SSL ciphers and flaws
@@ -290,6 +278,8 @@ cask "dbngin"
cask "docker"
# Reimagine your terminal
cask "fig"
# UI toolkit for building applications for mobile, web and desktop
cask "flutter"
# Unofficial overcast.fm podcast app
cask "fog"
# Typeface made for developers
@@ -368,17 +358,15 @@ cask "vlc"
cask "voikkospellservice"
# Rust-based terminal
cask "warp"
# Mastodon, Pleroma, and Misskey client
cask "whalebird"
# View output from scripts in the menu bar
cask "xbar"
mas "1Password for Safari", id: 1569813296
mas "Actions", id: 1586435171
mas "Audiobook Builder", id: 1437681957
mas "Flow", id: 1423210932
mas "Ivory", id: 6444602274
mas "Keynote", id: 409183694
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Tailscale", id: 1475387142
mas "Xcode", id: 497799835
vscode "akamud.vscode-theme-onelight"
vscode "amiralizadeh9480.laravel-extra-intellisense"
vscode "andrewleedham.vscode-css-modules"

View File

@@ -0,0 +1,18 @@
-- Global objects
globals = {
"astronvim",
"astronvim_installation",
"vim",
"bit",
}
-- Rerun tests only if their modification time changed
cache = true
-- Don't report unused self arguments of methods
self = false
ignore = {
"631", -- max_line_length
"212/_.*", -- unused argument, for vars with "_" prefix
}

View File

@@ -0,0 +1,20 @@
{
"neodev": {
"library": {
"enabled": true,
"plugins": true
}
},
"neoconf": {
"plugins": {
"lua_ls": {
"enabled": true
}
}
},
"lspconfig": {
"lua_ls": {
"Lua.format.enable": false
}
}
}

View File

@@ -22,6 +22,7 @@ return {
["<leader>b"] = { name = "Buffers" },
-- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
["<leader>P"] = { ":Telescope projects<cr>", desc = "Update Projects listing" },
},
t = {
-- setting a mapping to false will disable it

View File

@@ -25,6 +25,8 @@ return {
icons_enabled = true,
-- disable notifications when toggling UI elements
ui_notifications_enabled = true,
-- enable experimental resession.nvim session management (will be default in AstroNvim v4)
resession_enabled = false,
},
}
-- If you need more control, you can use the function()...end notation

View File

@@ -30,7 +30,7 @@ return {
"folke/trouble.nvim",
opts = {
auto_open = true,
position = "right"
position = "bottom"
}
},
{ import = "astrocommunity.editing-support.refactoring-nvim" },
@@ -40,8 +40,15 @@ return {
{ import = "astrocommunity.indent.mini-indentscope" },
{ import = "astrocommunity.markdown-and-latex.glow-nvim" },
{ import = "astrocommunity.motion.harpoon" },
{ import = "astrocommunity.pack.ansible" },
{ import = "astrocommunity.pack.bash" },
{ import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.go" },
{ import = "astrocommunity.pack.html-css" },
{ import = "astrocommunity.pack.markdown" },
{ import = "astrocommunity.pack.php" },
{ import = "astrocommunity.project.neoconf-nvim" },
{ import = "astrocommunity.pack.typescript" },
{ import = "astrocommunity.pack.vue" },
{ import = "astrocommunity.project.nvim-spectre" },
{ import = "astrocommunity.project.project-nvim" },
{ import = "astrocommunity.test.neotest" },

View File

@@ -47,9 +47,13 @@ return {
hide_dotfiles = false,
hide_gitignored = false,
hide_by_name = {
'.idea',
'.DS_Store'
},
never_show = {
'.git',
'.idea',
'.mypy_cache',
'.DS_Store',
'thumbs.db'
},

View File

@@ -4,29 +4,41 @@ return {
{
"williamboman/mason-lspconfig.nvim",
-- overrides `require("mason-lspconfig").setup(...)`
opts = {
ensure_installed = {
"diagnosticls",
},
},
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "lua_ls",
})
end,
},
-- use mason-null-ls to configure Formatters/Linter
-- installation for null-ls sources
{
"jay-babu/mason-null-ls.nvim",
-- overrides `require("mason-null-ls").setup(...)`
opts = {
automatic_setup = true,
automatic_installation = true,
},
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "prettier",
-- "stylua",
})
opts.automatic_setup = true
opts.automatic_installation = true
end,
},
{
"jay-babu/mason-nvim-dap.nvim",
-- overrides `require("mason-nvim-dap").setup(...)`
opts = {
automatic_installation = true,
automatic_setup = true,
ensure_installed = { "python", "php", "js", "bash" },
},
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
"python",
"php",
"js",
"bash"
})
opts.automatic_installation = true
opts.automatic_setup = true
end,
},
}

View File

@@ -30,14 +30,8 @@ return {
null_ls.builtins.diagnostics.tfsec,
null_ls.builtins.diagnostics.trail_space,
null_ls.builtins.diagnostics.tsc,
null_ls.builtins.diagnostics.vacuum,
null_ls.builtins.diagnostics.vint,
null_ls.builtins.diagnostics.vulture,
null_ls.builtins.diagnostics.yamllint,
null_ls.builtins.diagnostics.zsh,
null_ls.builtins.formatting.blade_formatter,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.eslint,
null_ls.builtins.formatting.fixjson,
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.jq,
@@ -45,7 +39,6 @@ return {
null_ls.builtins.formatting.shfmt.with {
args = { "-i", "1", "-bn", "-ci", "-sr", "-kb", "-fn" },
},
null_ls.builtins.formatting.stylelint,
}
return config -- return final config table
end,

View File

@@ -1,7 +1,7 @@
return {
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
opts = function(_, opts)
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
"bash",
"c",
"cmake",
@@ -28,6 +28,6 @@ return {
"vim",
"vue",
"yaml",
},
},
})
end,
}

View File

@@ -12,7 +12,7 @@
rebase = true
[gpg]
format = ssh
format = ssh
[alias]
branchbydate = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'
@@ -22,6 +22,7 @@
nah = !git reset --hard && git clean -df
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
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)'
tagdate = log --date-order --graph --tags --simplify-by-decoration --pretty=format:\"%ai %h %d\"
undo-commit = reset HEAD~ --soft
@@ -59,4 +60,5 @@
# dotfiles special config
[includeIf "hasconfig:remote.*.url:https://github.com/ivuorinen/dotfiles.git"]
path = ~/.dotfiles/config/git/special/dotfiles ;
path = ~/.dotfiles/config/git/special/dotfiles ;

View File

@@ -2,14 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AboutToPasteTabsWithCancel</key>
<true/>
<key>AboutToPasteTabsWithCancel_selection</key>
<integer>0</integer>
<key>AllowClipboardAccess</key>
<true/>
<key>AlternateMouseScroll</key>
<true/>
<key>AutoHideTmuxClientSession</key>
<true/>
<key>Custom Color Presets</key>
@@ -344,7 +338,7 @@
</dict>
</dict>
<key>Default Bookmark Guid</key>
<string>82636119-EA17-4A26-9AA7-408172F4A9C8</string>
<string>B563F48B-314D-48CC-908E-ACA971D430BE</string>
<key>DimBackgroundWindows</key>
<false/>
<key>DimOnlyText</key>
@@ -353,16 +347,14 @@
<true/>
<key>HapticFeedbackForEsc</key>
<false/>
<key>HideScrollbar</key>
<true/>
<key>HotkeyMigratedFromSingleToMulti</key>
<true/>
<key>IRMemory</key>
<integer>4</integer>
<key>MaxVertically</key>
<true/>
<key>NeverWarnAboutShortLivedSessions_82636119-EA17-4A26-9AA7-408172F4A9C8</key>
<true/>
<key>NeverWarnAboutShortLivedSessions_82636119-EA17-4A26-9AA7-408172F4A9C8_selection</key>
<integer>0</integer>
<key>New Bookmarks</key>
<array>
<dict>
@@ -370,6 +362,8 @@
<true/>
<key>ASCII Ligatures</key>
<false/>
<key>Allow Title Reporting</key>
<true/>
<key>Ambiguous Double Width</key>
<false/>
<key>Ansi 0 Color</key>
@@ -610,26 +604,12 @@
<key>Red Component</key>
<real>1</real>
</dict>
<key>Badge Font</key>
<string>JetBrainsMonoNerdFontCompleteM-Bold</string>
<key>Badge Max Height</key>
<real>0.10000000000000001</real>
<key>Badge Max Width</key>
<real>0.45000000000000001</real>
<key>Badge Right Margin</key>
<real>10</real>
<key>Badge Text</key>
<string></string>
<key>Badge Top Margin</key>
<real>10</real>
<key>Blend</key>
<real>0.24709154211956524</real>
<key>Blinking Cursor</key>
<false/>
<key>Blur</key>
<true/>
<key>Blur Radius</key>
<real>9.5927277260638313</real>
<real>10</real>
<key>Bold Color</key>
<dict>
<key>Alpha Component</key>
@@ -648,11 +628,9 @@
<key>Close Sessions On End</key>
<true/>
<key>Columns</key>
<integer>120</integer>
<integer>130</integer>
<key>Command</key>
<string></string>
<key>Cursor Boost</key>
<real>0.0</real>
<key>Cursor Color</key>
<dict>
<key>Alpha Component</key>
@@ -720,11 +698,9 @@
<real>0.80392156862745101</real>
</dict>
<key>Guid</key>
<string>82636119-EA17-4A26-9AA7-408172F4A9C8</string>
<string>B563F48B-314D-48CC-908E-ACA971D430BE</string>
<key>Horizontal Spacing</key>
<real>1</real>
<key>Icon</key>
<integer>1</integer>
<key>Idle Code</key>
<integer>0</integer>
<key>Jobs to Ignore</key>
@@ -1030,8 +1006,6 @@
<key>Red Component</key>
<real>0.53725490196078429</real>
</dict>
<key>Minimum Contrast</key>
<real>0.14973958333333334</real>
<key>Mouse Reporting</key>
<true/>
<key>Name</key>
@@ -1057,7 +1031,7 @@
<key>Rows</key>
<integer>25</integer>
<key>Screen</key>
<integer>-2</integer>
<integer>-1</integer>
<key>Scrollback Lines</key>
<integer>0</integer>
<key>Selected Text Color</key>
@@ -1088,17 +1062,13 @@
</dict>
<key>Send Code When Idle</key>
<false/>
<key>Set Local Environment Vars</key>
<true/>
<key>Shortcut</key>
<string>T</string>
<string></string>
<key>Show Status Bar</key>
<true/>
<key>Show Timestamps</key>
<integer>2</integer>
<key>Silence Bell</key>
<false/>
<key>Smart Cursor Color</key>
<true/>
<key>Status Bar Layout</key>
<dict>
@@ -1107,17 +1077,17 @@
<key>algorithm</key>
<integer>0</integer>
<key>auto-rainbow style</key>
<integer>3</integer>
<integer>0</integer>
<key>font</key>
<string>.AppleSystemUIFont 12</string>
<key>remove empty components</key>
<false/>
<true/>
</dict>
<key>components</key>
<array>
<dict>
<key>class</key>
<string>iTermStatusBarJobComponent</string>
<string>iTermStatusBarClockComponent</string>
<key>configuration</key>
<dict>
<key>knobs</key>
@@ -1126,22 +1096,55 @@
<integer>1</integer>
<key>base: priority</key>
<real>5</real>
<key>format</key>
<string>YYYY-MM-dd HH:mm</string>
<key>localize</key>
<integer>0</integer>
<key>maxwidth</key>
<real>150</real>
<key>minwidth</key>
<real>150</real>
</dict>
<key>layout advanced configuration dictionary value</key>
<dict>
<key>algorithm</key>
<integer>0</integer>
<key>auto-rainbow style</key>
<integer>0</integer>
<key>remove empty components</key>
<false/>
</dict>
</dict>
</dict>
<dict>
<key>class</key>
<string>iTermStatusBarHostnameComponent</string>
<key>configuration</key>
<dict>
<key>knobs</key>
<dict>
<key>abbreviate-localhost</key>
<string></string>
<key>base: compression resistance</key>
<real>1</real>
<key>base: priority</key>
<real>5</real>
<key>maxwidth</key>
<real>+infinity</real>
<key>minwidth</key>
<integer>0</integer>
<string>0</string>
<key>shared text color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.63</real>
<real>0.43218994140625</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.63</real>
<real>0.34513998031616211</real>
<key>Red Component</key>
<real>0.90000000000000002</real>
<real>0.0</real>
</dict>
</dict>
<key>layout advanced configuration dictionary value</key>
@@ -1149,10 +1152,66 @@
<key>algorithm</key>
<integer>0</integer>
<key>auto-rainbow style</key>
<integer>3</integer>
<integer>0</integer>
<key>font</key>
<string>.AppleSystemUIFont 12</string>
<key>remove empty components</key>
<true/>
</dict>
</dict>
</dict>
<dict>
<key>class</key>
<string>iTermStatusBarSpringComponent</string>
<key>configuration</key>
<dict>
<key>knobs</key>
<dict>
<key>base: compression resistance</key>
<integer>1</integer>
<key>base: priority</key>
<real>5</real>
<key>iTermStatusBarSpringComponentSizeMultipleKey</key>
<integer>1</integer>
<key>iTermStatusBarSpringComponentSpringConstantKey</key>
<real>0.01</real>
</dict>
<key>layout advanced configuration dictionary value</key>
<dict>
<key>algorithm</key>
<integer>0</integer>
<key>auto-rainbow style</key>
<integer>0</integer>
<key>font</key>
<string>.AppleSystemUIFont 12</string>
<key>remove empty components</key>
<true/>
</dict>
</dict>
</dict>
<dict>
<key>class</key>
<string>iTermStatusBarSpringComponent</string>
<key>configuration</key>
<dict>
<key>knobs</key>
<dict>
<key>base: compression resistance</key>
<integer>1</integer>
<key>base: priority</key>
<real>5</real>
<key>iTermStatusBarSpringComponentSizeMultipleKey</key>
<integer>1</integer>
<key>iTermStatusBarSpringComponentSpringConstantKey</key>
<real>0.01</real>
</dict>
<key>layout advanced configuration dictionary value</key>
<dict>
<key>algorithm</key>
<integer>0</integer>
<key>auto-rainbow style</key>
<integer>0</integer>
<key>remove empty components</key>
<false/>
</dict>
</dict>
@@ -1165,18 +1224,14 @@
<array/>
<key>Terminal Type</key>
<string>xterm-256color</string>
<key>Title Components</key>
<integer>512</integer>
<key>Transparency</key>
<real>0.10293218085106381</real>
<real>0.20000000000000004</real>
<key>Unlimited Scrollback</key>
<true/>
<key>Use Bold Font</key>
<true/>
<key>Use Bright Bold</key>
<true/>
<key>Use Cursor Guide</key>
<false/>
<key>Use Italic Font</key>
<true/>
<key>Use Non-ASCII Font</key>
@@ -1191,12 +1246,6 @@
<string>/Users/ivuorinen/Code</string>
</dict>
</array>
<key>OpenArrangementAtStartup</key>
<false/>
<key>OpenNoWindowsAtStartup</key>
<false/>
<key>OpenTmuxWindowsIn</key>
<integer>1</integer>
<key>PointerActions</key>
<dict>
<key>Button,1,1,,</key>
@@ -1230,16 +1279,24 @@
<string>kNextWindowPointerAction</string>
</dict>
</dict>
<key>PreserveWindowSizeWhenTabBarVisibilityChanges</key>
<true/>
<key>Print In Black And White</key>
<true/>
<key>PromptOnQuit</key>
<false/>
<key>SeparateStatusBarsPerPane</key>
<false/>
<key>SmartPlacement</key>
<true/>
<key>SoundForEsc</key>
<false/>
<key>SplitPaneDimmingAmount</key>
<real>0.59999999999999998</real>
<key>StatusBarPosition</key>
<integer>0</integer>
<key>TabStyleWithAutomaticOption</key>
<integer>5</integer>
<key>ThreeFingerEmulates</key>
<true/>
<key>TmuxUnpauseAutomatically</key>
<true/>
<key>VisualIndicatorForEsc</key>

View File

@@ -149,7 +149,7 @@ function section_brew
have brew && {
case "$1" in
install)
brew bundle install --file="$BREWFILE" && msg_yay "Done!"
brew bundle install --file="$BREWFILE" --force --quiet && msg_yay "Done!"
;;
update)
brew update && brew outdated && brew upgrade && brew cleanup

View File

@@ -46,7 +46,7 @@ gitdirty()
if [[ "${d:0:2}" == "--" ]] || [[ "$d" == "vendor" ]] || [[ "$d" == "node_modules" ]]; then
echo ""
else
cd "$d" > /dev/null
cd "$d"
# If we have `.git` folder, check it.
if [[ -d ".git" ]]; then
@@ -58,7 +58,7 @@ gitdirty()
printf " %s %s\n" "$ICON" "$(pwd)"
else
# If it wasn't git repository, check subdirectories.
gitdirtyrepos -- *
gitdirtyrepos ./*
fi
fi
cd .. > /dev/null

Binary file not shown.

50
local/bin/x-sha256sum-matcher Executable file
View File

@@ -0,0 +1,50 @@
#!/usr/bin/env bash
# x-sha256sum-matcher
#
# Check if two files are the same
#
# Ismo Vuorinen <https://github.com/ivuorinen> 2023
# MIT License
# ENV Variables
: "${VERBOSE:=0}" # VERBOSE=1 x-sha256sum-matcher file1 file2
file_1="$1"
file_2="$2"
# return sha256sum for file
# $1 - filename (string)
get_sha256sum() {
sha256sum "$1" | head -c 64
}
[ $# -eq 0 ] && {
echo "Usage: $0 file1.sh file2.sh" && exit 1
}
msg() {
[[ "$VERBOSE" -eq 1 ]] && echo "$1"
}
error() {
msg "(!) ERROR: $1" && exit 1
}
if [ ! -f "$file_1" ]; then
error "File 1 does not exist: $file_1"
fi
if [ ! -f "$file_2" ]; then
error "File 2 does not exist: $file_2"
fi
file_1_hash=$(get_sha256sum "$file_1")
file_2_hash=$(get_sha256sum "$file_2")
if [ "$file_1_hash" != "$file_2_hash" ]; then
error "Files do not match"
else
msg "(*) Success: Files do match"
exit 0;
fi

View File

@@ -35,8 +35,10 @@ for f in ${PBB_CHAPTERS[@]}; do
HEADER=$(grep -e '^[#] ' "$f" | head -1 | awk '{print tolower($2)}')
CHEAT_FILE="$CHEAT_DEST/${HEADER}"
if [ ! -f "$CHEAT_FILE" ]; then
cp "$f" "$CHEAT_FILE" && msg_run "$CHEAT_FILE"
replacable "$f" "$CHEAT_FILE"
override=$?
if [ "$override" -ne 1 ]; then
cp "$f" "$CHEAT_FILE" && msg_run "Updated: $CHEAT_FILE"
fi
LC_ALL=C perl -pi.bak -e 's/\<\!-- CHAPTER END --\>//' "$CHEAT_FILE"

View File

@@ -51,8 +51,10 @@ for d in "$TLDR_TEMP_DIR"/pages/*; do
TLDR_FILE="$SECTION_DIR/${FILENAME}"
# echo "-> dest: $TLDR_FILE"
if [ ! -f "$TLDR_FILE" ]; then
cp "$FILE" "$TLDR_FILE" && msg_run "$TLDR_FILE"
replacable "$FILE" "$TLDR_FILE"
override=$?
if [ "$override" -ne 1 ]; then
cp "$FILE" "$TLDR_FILE" && msg_run "Updated: $TLDR_FILE"
fi
if [ -f "$TLDR_FILE" ] && [ '---' != "$(head -1 < "$TLDR_FILE")" ]; then

View File

@@ -230,3 +230,42 @@ rnd()
{
echo $RANDOM | md5sum | head -c 20
}
# return sha256sum for file
# $1 - filename (string)
function get_sha256sum()
{
sha256sum "$1" | head -c 64
}
# Replacable file
#
# $1 - filename (string)
# $2 - filename (string)
#
# Returns 1 when replacable, 0 when not replacable.
function replacable()
{
FILE1="$1"
FILE2="$2"
[[ ! -r "$FILE1" ]] && { msg_err "File 1 ($FILE1) does not exist" && return 1; }
[[ ! -r "$FILE2" ]] && { msg_err "File 2 ($FILE2) does not exist" && return 1; }
FILE1_HASH=$(get_sha256sum "$FILE1")
FILE2_HASH=$(get_sha256sum "$FILE2")
[[ $FILE1_HASH = "" ]] && {
msg_err "Could not get hash for file 1 ($FILE1)" && return 1;
}
[[ $FILE2_HASH = "" ]] && {
msg_err "Could not get hash for file 2 ($FILE2)" && return 1;
}
[[ "$FILE1_HASH" == "$FILE2_HASH" ]] && {
msg_ok "Files match, not replacable" && return 0;
}
return 1;
}