From 1aff2dc4d35aa94719883275f2e65101bcaf076d Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Sun, 23 Mar 2025 15:09:27 -0700 Subject: [PATCH 1/4] updated history search for zsrch and changed zellij quit --- home_config/zellij/config.kdl | 2 +- home_root/.zshrc | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/home_config/zellij/config.kdl b/home_config/zellij/config.kdl index b980257..c8f70cb 100644 --- a/home_config/zellij/config.kdl +++ b/home_config/zellij/config.kdl @@ -148,7 +148,7 @@ keybinds clear-defaults=true { bind "Alt i" { MoveTab "left"; } bind "Alt n" { NewPane; } bind "Alt o" { MoveTab "right"; } - bind "Ctrl q" { Quit; } + bind "Alt Ctrl q" { Quit; } } shared_except "locked" "move" { bind "Ctrl h" { SwitchToMode "move"; } diff --git a/home_root/.zshrc b/home_root/.zshrc index a2ac8d5..76853e7 100644 --- a/home_root/.zshrc +++ b/home_root/.zshrc @@ -105,8 +105,7 @@ if [[ $(uname) == "Darwin" ]]; then source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh elif [[ $(uname) == "Linux" ]]; then source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh + bindkey "${terminfo[kcuu1]}" history-search-backward + bindkey "${terminfo[kcud1]}" history-search-forward fi - -bindkey '^[[B' history-search-forward -bindkey '^[[A' history-search-backward From b3ea862682cad27cb45f7b3af19202d0cca9dba7 Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Fri, 5 Sep 2025 16:23:17 -0700 Subject: [PATCH 2/4] updated files --- home_config/aerospace/aerospace.toml | 18 ++++----- home_config/nvim/lazy-lock.json | 32 ++++++++-------- .../__pycache__/settings.cpython-313.pyc | Bin 139 -> 137 bytes lk-installers/macinstaller | 35 ++++++++++++++++++ 4 files changed, 58 insertions(+), 27 deletions(-) create mode 100755 lk-installers/macinstaller diff --git a/home_config/aerospace/aerospace.toml b/home_config/aerospace/aerospace.toml index 68fb390..8cdc351 100644 --- a/home_config/aerospace/aerospace.toml +++ b/home_config/aerospace/aerospace.toml @@ -1,4 +1,4 @@ -# Place a copy of this config to ~/.aerospace.toml + # Place a copy of this config to ~/.aerospace.toml # After that, you can edit ~/.aerospace.toml to your liking # You can use it to add commands that run after login to macOS user session. @@ -57,12 +57,12 @@ automatically-unhide-macos-hidden-apps = false # See: # https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors [gaps] - inner.horizontal = 8 - inner.vertical = 8 - outer.left = 8 - outer.bottom = 8 - outer.top = 8 - outer.right = 8 + inner.horizontal = 2 + inner.vertical = 2 + outer.left = 2 + outer.bottom = 2 + outer.top = 2 + outer.right = 2 # 'main' binding mode declaration # See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes @@ -131,11 +131,9 @@ automatically-unhide-macos-hidden-apps = false alt-c = 'workspace C' alt-d = 'workspace D' alt-e = 'workspace E' - alt-f = 'workspace F' alt-g = 'workspace G' alt-i = 'workspace I' alt-m = 'workspace M' - alt-n = 'workspace N' alt-o = 'workspace O' alt-p = 'workspace P' alt-q = 'workspace Q' @@ -164,11 +162,9 @@ automatically-unhide-macos-hidden-apps = false alt-shift-c = 'move-node-to-workspace C' alt-shift-d = 'move-node-to-workspace D' alt-shift-e = 'move-node-to-workspace E' - alt-shift-f = 'move-node-to-workspace F' alt-shift-g = 'move-node-to-workspace G' alt-shift-i = 'move-node-to-workspace I' alt-shift-m = 'move-node-to-workspace M' - alt-shift-n = 'move-node-to-workspace N' alt-shift-o = 'move-node-to-workspace O' alt-shift-p = 'move-node-to-workspace P' alt-shift-q = 'move-node-to-workspace Q' diff --git a/home_config/nvim/lazy-lock.json b/home_config/nvim/lazy-lock.json index 5e6d8af..e2922f7 100644 --- a/home_config/nvim/lazy-lock.json +++ b/home_config/nvim/lazy-lock.json @@ -1,34 +1,34 @@ { "LazyVim": { "branch": "main", "commit": "ec5981dfb1222c3bf246d9bcaa713d5cfa486fbd" }, - "blink.cmp": { "branch": "main", "commit": "1c8d8e45d6fba3d11512f4762b1fdf906bffca42" }, + "blink.cmp": { "branch": "main", "commit": "49f211fe5d729df53df4c042d7c3464cf47d199e" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, - "conform.nvim": { "branch": "master", "commit": "9a06e83527407a7600a2fe4e0d10adf432b6215e" }, + "conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" }, "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, - "gitsigns.nvim": { "branch": "main", "commit": "8df63f2ddc615feb71fd4aee45a4cee022876df1" }, - "grug-far.nvim": { "branch": "main", "commit": "6b1aca6018cb6ce18a46b9e8583074a2f820b51e" }, - "lazy.nvim": { "branch": "main", "commit": "c501b429cf995c645454539b924aaefae45bb9eb" }, + "gitsigns.nvim": { "branch": "main", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" }, + "grug-far.nvim": { "branch": "main", "commit": "5da116bc99a03e14be3b824e319f4e49c676af78" }, + "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, "lualine.nvim": { "branch": "master", "commit": "9fef261b53fbe3a2ef01ee9667f6fde064b1ed10" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" }, - "mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" }, + "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "mini.ai": { "branch": "main", "commit": "978ffc65c6b513fde9ef075326d34d89197f1ea5" }, "mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" }, - "mini.pairs": { "branch": "main", "commit": "1a3e73649c0eaef2f6c48ce1e761c6f0a7c11918" }, + "mini.pairs": { "branch": "main", "commit": "b90e36aa5ca5e0d825e77ad67aac22214a4d9096" }, "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" }, - "nvim-lint": { "branch": "master", "commit": "936197073214c26a347fb933c9459c8766376b23" }, - "nvim-lspconfig": { "branch": "master", "commit": "f43135c38a37c588053ad5e209c7460f43f6340c" }, - "nvim-treesitter": { "branch": "master", "commit": "b967bbc27b564001c3d3b8ea93444cf6d0b21d23" }, + "nvim-lint": { "branch": "master", "commit": "93b8040115c9114dac1047311763bef275e752dc" }, + "nvim-lspconfig": { "branch": "master", "commit": "401e50fae626c4707af12114b5ddb7bb9f4236a4" }, + "nvim-treesitter": { "branch": "master", "commit": "85168f15808d89b0222313652b9d2777eda3cb08" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" }, "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, - "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, + "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, - "todo-comments.nvim": { "branch": "main", "commit": "51e10f838e84b4756c16311d0b1ef0972c6482d2" }, - "tokyonight.nvim": { "branch": "main", "commit": "81c867c5f638597a82c82094dcb90ed42444dabc" }, + "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, + "tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" }, "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, "ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" }, - "which-key.nvim": { "branch": "main", "commit": "0099511294f16b81c696004fa6a403b0ae61f7a0" } -} \ No newline at end of file + "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" } +} diff --git a/home_config/thefuck/__pycache__/settings.cpython-313.pyc b/home_config/thefuck/__pycache__/settings.cpython-313.pyc index 992cf76ed3cbcbff21c5efaadb3eb47769374262..7b48a22785cbdc503751cb6855e066b3e3399932 100644 GIT binary patch delta 36 qcmeBX>}2Hr%*)Hg00eLEJekOC%&VavTAW%`tY4N}KTt%*)Hg00cLb&Q9bu=GW2>Elw>e*3Zc/dev/null 2>&1; then + echo "Homebrew is already installed. Updating..." + brew update +else + echo "Homebrew not found. Installing Homebrew..." + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + + # Add Homebrew to PATH for the current session + if [[ -f /opt/homebrew/bin/brew ]]; then + # For Apple Silicon Macs + eval "$(/opt/homebrew/bin/brew shellenv)" + echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile + echo "Homebrew has been installed and added to your PATH." + elif [[ -f /usr/local/bin/brew ]]; then + # For Intel Macs + eval "$(/usr/local/bin/brew shellenv)" + echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zprofile + echo "Homebrew has been installed and added to your PATH." + else + echo "Error: Couldn't find the Homebrew binary after installation." + exit 1 + fi +fi + +echo "Installing packages with Homebrew..." +brew install neovim btop htop neofetch curl wget git zip unzip zsh tldr +brew install zsh-autosuggestions zsh-syntax-highlighting +brew install rustup-init +rustup-init -y + +echo "Installation complete!" \ No newline at end of file From f3aed61e6b96952d1710848c3b2b1acd2e30136e Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Fri, 5 Sep 2025 16:23:43 -0700 Subject: [PATCH 3/4] updated files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ec2f92a..ffe22b2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .config/btop .config/neofetch /.aider* +__pycache__/ \ No newline at end of file From 00717500056db846954b09bcfac4ebb3f1aa84e6 Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Fri, 5 Sep 2025 16:26:38 -0700 Subject: [PATCH 4/4] updated zshr bindings --- .../nvim/lua/plugins/mason-workaround.lua | 4 ++++ .../__pycache__/settings.cpython-311.pyc | Bin 150 -> 150 bytes home_root/.zshrc | 4 ++++ 3 files changed, 8 insertions(+) create mode 100644 home_config/nvim/lua/plugins/mason-workaround.lua diff --git a/home_config/nvim/lua/plugins/mason-workaround.lua b/home_config/nvim/lua/plugins/mason-workaround.lua new file mode 100644 index 0000000..949039d --- /dev/null +++ b/home_config/nvim/lua/plugins/mason-workaround.lua @@ -0,0 +1,4 @@ +return { + { "mason-org/mason.nvim", version = "^1.0.0" }, + { "mason-org/mason-lspconfig.nvim", version = "^1.0.0" }, +} diff --git a/home_config/thefuck/__pycache__/settings.cpython-311.pyc b/home_config/thefuck/__pycache__/settings.cpython-311.pyc index 29542dd713510714193b5915e5b97ab9747f6043..e41c17853076b0fd05e02b01bd9bbe0db9dd519e 100644 GIT binary patch delta 20 acmbQnIE|5KIWI340}#xh;Mmjprp diff --git a/home_root/.zshrc b/home_root/.zshrc index 76853e7..442432f 100644 --- a/home_root/.zshrc +++ b/home_root/.zshrc @@ -34,6 +34,10 @@ zinit cdreplay -q bindkey -e bindkey '^p' history-search-backward bindkey '^n' history-search-forward +bindkey '^[[A' history-beginning-search-backward +bindkey '^[[B' history-beginning-search-forward +bindkey '\e[A' history-beginning-search-backward +bindkey '\e[B' history-beginning-search-forward # History HISTSIZE=5000