87 Commits

Author SHA1 Message Date
051731d110 feat(zsh): add iTerm2 shell integration support
Source iTerm2 shell integration script when available, enabling
features like marks, badges, and status bar integration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:47:44 +00:00
Jim Myhrberg
f1901b81ad fix(zshrc): clean stale paths from PATH before loading zinit and mise
Remove any stale zinit plugin paths and mise install paths from PATH
before loading/activating them. This prevents issues when shell sessions
inherit cached environment variables from tools like direnv in VSCode.
2026-01-21 19:48:39 +00:00
Jim Myhrberg
ab9042fbae feat(zshrc): skip interactive shell setup for Claude Code sessions
Add CLAUDECODE=1 environment variable check to bail early from full
interactive shell setup, matching behavior for Cursor and VSCode.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 16:21:30 +00:00
7c04e49858 fix(zshrc): improve installation prompts for mise and starship 2025-12-30 13:53:42 +00:00
e60b35ecb4 style(zsh): standardize fzf options formatting in zshrc 2025-11-13 01:08:13 +00:00
6cba7534cf feat(zsh): add atuin+fzf for enhanced command history 2025-11-10 09:36:53 +00:00
Jim Myhrberg
9cd09904a4 fix(zshrc): update condition to prevent execution in specific environments 2025-10-13 23:06:30 +01:00
Jim Myhrberg
68a5b5dfb9 feat(zsh): add cursor setup script for enhanced shell integration 2025-09-23 17:54:38 +01:00
Jim Myhrberg
50004fcb74 fix(shell): improve conditions for skipping interactive shell setup 2025-09-16 18:03:46 +01:00
Jim Myhrberg
1f558c9f95 fix(shell/vscode): make alt+left/right work in VSCode terminal 2025-08-25 16:37:13 +01:00
d2b5cd53b0 chore(zshrc): improve cached-eval usage 2025-07-07 23:10:25 +01:00
ed14e9a73d chore(zsh): make comments prettier :P 2025-07-07 10:26:06 +01:00
b572a346fa fix(zsh/direnv): correctly perform cache eval of setup 2025-07-07 10:24:47 +01:00
c2ae58077a fix(vscode): avoid interactive shell setup during VSCode shell resolving
When VSCode is started from normal non-terminal/CLI methods, it will start a interactive shell session in the background to dump the the env and get PATH.

Latest versions of VSCode do no play nice with Mise's dynamic PATH updating stuff, and understandably so.

Hence we now check VSCODE_RESOLVING_ENVIRONMENT and avoid all interactive shell setup when it is set.
2025-06-28 16:10:19 +01:00
1e536231f1 chore(mise): switch to default binary install path
This resolves issues with VSCode sometimes not finding the mise executable within the custom path.
2025-05-26 01:15:28 +01:00
Jim Myhrberg
53effb7185 fix(cursor): enable alt+delete to work in terminals 2025-03-05 19:46:12 +00:00
Jim Myhrberg
9ca2e7ead6 chore(zshrc/prompt): offer to install starship with mise use -g instead of mise install 2025-02-24 10:52:42 +00:00
Jim Myhrberg
2be6239e18 feat(cli): add ansi CLI tool 2025-02-14 21:36:41 +00:00
10144dfa16 fix(zsh/mise): switch back to normal interactive init
Previously the interactive init would not update PATH immediately,
causing the rest of the zshrc file to fail to find any tools installed
with mise. This longer seems to be an issue.
2025-01-13 19:56:30 +00:00
Jim Myhrberg
bb0518a166 fix(zshrc): only attempt to load zinit module if .so file exists 2025-01-06 10:30:07 +00:00
Jim Myhrberg
e31301d0ff chore(zshrc): minor re-orders of a few sections 2024-12-09 10:55:08 +00:00
Jim Myhrberg
fdc7fcafc6 chore(mise): update shell setup and mise config for latest mise 2024-11-28 19:36:46 +00:00
2ab4549060 chore(fzf): tweak tmux integration behavior 2024-11-12 01:25:45 +00:00
fcbed7dc82 chore(shell/fzf): use newer --tmux option for fzf
This means the fzf-tmux helper script is no longer needed.
2024-10-27 01:28:17 +01:00
cb7d47965d chore(zsh/fzf): set height to 100% when tmux is not available 2024-10-20 23:52:06 +01:00
Jim Myhrberg
4e461ad88c feat(util): add and setup restish CLI tool 2024-08-21 16:27:17 +01:00
Jim Myhrberg
d9cb73260e chore(shell): add custom command-path helper 2024-06-06 18:33:38 +01:00
54aed5d054 feat(shell/completion): add a custom override for fzf-tab-source 2024-05-21 02:56:29 +01:00
6562df1c19 fix(shell/completions): fix typo 2024-05-21 02:52:43 +01:00
ddbbe283ff feat(shell/completions): tweak and improve fzf-based completion interactions 2024-05-21 02:21:58 +01:00
98f0b2ec66 feat(shell): major refactor around history and completion setup
Biggest change is embracing fzf for all shell completion. This includes
using tmux popup windows to effectively render completions as floating
popups with fuzzy matching via fzf.

Shell history has also been improved, with appending each command to the
history file one by one, rather than only at end of a shell session when
the shell exists. This should ensure I don't have any more lost commands
cause the shell didn't exit cleanly.
2024-05-19 00:08:04 +01:00
3a6e6a5256 fix(shell/cached-eval): find usable md5 command and improve reliability 2024-05-19 00:05:25 +01:00
43be9196eb chore(shell): move interactive shell helpers to their own file 2024-05-18 01:34:49 +01:00
6f720ba985 feat(shell): create cached-eval helper to improve shell startup speed. 2024-05-18 01:16:31 +01:00
f399f5f085 feat(shell): add alias to function helpers
These can be useful to convert aliases to shell functions, which can
help resolve shell completion issues in some situations.
2024-05-12 16:28:08 +01:00
Jim Myhrberg
430e9053be feat(mise): add command wrapper function 2024-05-09 21:16:47 +01:00
f7e1cb03e7 feat(tools/tldr): customize styling of Rust-based tlrc tldr client 2024-05-09 02:26:45 +01:00
0b183f8acd fix(zsh/completion): ensure brew and brew installed shell completion works 2024-02-23 01:24:01 +00:00
edcf9c122d fix(zshrc): smoother initial run and tool installation 2024-02-22 23:53:24 +00:00
65544c24cc chore(zsh/completion): improve completion setup for various commands 2024-02-22 23:52:26 +00:00
e911f1ecb9 feat(shell): add zoxide as cd replacement 2024-02-19 00:47:30 +00:00
bf27ad21e4 chore(zshrc): minor tweak to mise setup 2024-02-04 00:10:02 +01:00
bf92527b6a feat(tools): migrate to mise (formally known as rtx) 2024-01-06 18:59:12 +00:00
9526b57d38 chore(zsh): various tweaks to zsh env setup and helpers 2024-01-06 15:10:15 +00:00
12505e939a chore(zshrc): fix typo 2023-11-20 11:11:43 +00:00
49a28ce05e chore(zsh/completions): disable completealiases
This prevented aliases from being completed via their original command
that they're aliasing.
2023-09-18 11:37:18 +01:00
4cd9893126 chore(rtx): install via official script instead of zinit
A bit more code, but should make installation more reliable, as zinit
often has issues detecting the correct binary/tarball to download from
GitHub releases.
2023-09-18 11:37:17 +01:00
266c6dcfac feat(kubernetes): remove tools, simplify setup and rely on rtx 2023-05-25 02:23:33 +01:00
e1105afa0c feat: move various various tools to be managed with rtx 2023-05-25 02:19:11 +01:00
b5a3dc2e4e feat(shell): add neovim specific helpers 2023-04-21 15:12:45 +01:00