Commit Graph
70 Commits
Author SHA1 Message Date
Yuhao Qing 1ba7380ac5 perf(completion): let Oh My Zsh own initialization
A single completion setup avoids duplicate initialization. Homebrew already exports its prefix during environment setup, so resolving it again adds an unnecessary subprocess.
2026-09-08 00:41:09 +08:00
Frank Qing 82c6a57c3a fix(shell): keep Cursor on agent and Grok on grok
Grok's installer prepends ~/.grok/bin and steals ~/.local/bin/agent.
easyzsh already shims `grok`; claim `agent` for Cursor and drop the
vendor bin from PATH so a later Grok upgrade cannot shadow it.
2026-08-13 17:36:56 +08:00
Jeffrey e5e2801ce8 refactor(shell): collapse managed tree back into stubs
Drop ~/.config/zsh/{env,interactive,login} modules. PATH and local.zsh
live in .zshenv; interactive UX is a single .zshrc again. Deploy only
installs the three stubs and removes obsolete trees/examples.
2026-08-06 14:46:56 +08:00
Jeffrey caac9235f6 fix(shell): use single ~/.config/zsh/local.zsh for machine local
Replace the local/ directory of split env/login/interactive files with
one always-on local.zsh sourced from .zshenv. Deploy migrates old
fragments and never overwrites local.zsh.
2026-08-06 14:41:31 +08:00
Jeffrey f8dcc29a2f refactor(shell): thin stubs with managed ~/.config/zsh tree
Split always-on PATH/env, login hooks, and interactive UX into a
managed tree under ~/.config/zsh, with never-overwrite local/ hooks.
Agents and interactive shells share one PATH owner; deploy.sh applies
the layout safely across machines.
2026-08-06 14:36:08 +08:00
Jeffrey ed5365859c fix(zshenv): put ~/.local/bin on PATH for every zsh
Non-interactive agent shells (Codex, Claude) skip .zshrc and never saw
user-local tools installed via pipx/uv/grok. Add ~/.local/bin in
.zshenv with an idempotent guard, and source optional
~/.config/zshenv.local for machine-local early env.
2026-08-06 14:25:52 +08:00
Jeffrey 6f6a8ac5f8 feat(zshrc): add cleanzip helper for macOS junk in archives
Small portable utility next to cheat/speedtest; strips __MACOSX
and .DS_Store entries via zip -d.
2026-08-05 17:15:45 +08:00
Jeffrey 91ec7985ad fix(zshrc): only alias k when the omz k plugin loaded
Lean plugin prefs drop k; an unconditional k=k -h alias then
points at nothing useful. Gate on the function the plugin defines.
2026-08-05 17:11:17 +08:00
Jeffrey d5eb16c4ab feat(zshrc): default j=z alias and 30-day omz update interval
zoxide is part of the base install; a short j jump alias matches
common muscle memory. Refresh omz on a monthly cadence instead of
the bi-weekly default.
2026-08-05 17:08:38 +08:00
Jeffrey f2695ca431 fix(zshrc): safer trash rm wrapper; drop personal install fragment
Keep ~/.zshrc upgrade-friendly by not shipping author-specific
plugin samples as patch targets. Prefer the flag-tolerant trash
function over bare aliases so common rm -f usage still works.
2026-08-05 16:53:25 +08:00
Yuhao QingandCursor 3fbf8b2350 perf(shell): skip oh-my-zsh completion security audit
Set ZSH_DISABLE_COMPFIX=true so oh-my-zsh runs compinit -u instead of -i,
skipping the per-startup compaudit security scan. The completion directories
are machine-owned and not group/world-writable, so the audit only costs time.
Combined with deferring pyenv init in ~/.config/zshrc/pyenv.zsh, this cuts
interactive startup from ~258ms to ~211ms and agent shells from ~226ms to
~183ms.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 03:58:06 +08:00
Yuhao QingandCursor 226f4438f1 feat(shell): enable more plugins and give agent shells a light theme
Uncomment history-substring-search, systemd, k, extract, and sudo, and add
poetry to the default plugin list; all are installed via the bundled or custom
plugin dirs. Switch to robbyrussell when CURSOR_AGENT is set so Cursor's agent
terminal skips powerlevel10k, keeping interactive shells on p10k.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 03:44:03 +08:00
Yuhao QingandCursor 12108ca3e4 fix(shell): guard brew shellenv against TCC and keep eza aliases
.zshenv runs brew shellenv for every zsh, including non-interactive and
GUI-launched shells; without a safe CWD the eval fails or triggers a
permission prompt when launched from a TCC-protected directory such as
~/Documents. Run it from /tmp.

The eza `l` alias (and the myip/e/ip/a/aa group) was defined before
oh-my-zsh loaded, so lib/directories.zsh overrode `l` back to ls. Move
the alias block after the oh-my-zsh source so the eza versions win.

Also document the ~/.config/zshrc personal-config mechanism and patch.sh
in the README, which previously only had a title.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 02:22:18 +08:00
mio 9377023e28 feat(shell): add .zshenv Homebrew init and Trash-backed rm
Move brew shellenv into .zshenv so PATH is available outside
interactive shells, and make install guarantee a Trash backend
for safer rm aliases on both macOS and Linux.
2026-07-26 16:28:09 +08:00
Frank Qing 17ecc5f67c fix(fzf): prefer bundled binary for shell integration 2026-07-15 12:00:29 +08:00
Frank Qing 76395923ce fix(install): make setup failures explicit and atomic
Installer pipelines masked dependency and download failures, causing
false success messages and unsafe config replacement.

Atomic updates and current upstream installers keep failures visible.
2026-07-15 00:16:33 +08:00
Frank Qing 3d5cf87929 (.zshrc, nvm.zsh): comment out unused plugins in .zshrc and refactor nvm initialization to improve function handling for nvm, node, and npm commands 2025-06-06 00:15:07 +08:00
Frank Qing ad6d3fe8fc Update 2025-06-05 23:22:57 +08:00
Frank Qing 5f22fb4d7e 🐛 (.zshrc, install.sh): fix newline issues at the end of files 2025-05-28 02:42:18 +08:00
Frank Qing d160d1795b (.zshrc, install.sh): integrate zoxide installation and initialization across multiple OSes 2025-05-28 02:15:02 +08:00
Frank Qing 4a063ea8d5 (.zshrc, install.sh): add Homebrew initialization and eza installation logic for multiple OSes 2025-05-28 01:54:38 +08:00
Frank Qing 4b401aa1cb (.zshrc, install.sh): streamline zsh-autosuggestions plugin configuration and remove marker installation logic 2025-05-28 01:28:46 +08:00
Frank Qing bf1f1c0cbb Upgrade easyzsh 2025-05-28 01:26:30 +08:00
Frank Qing 038cf2b2c7 (.zshrc, install.sh): add autojump support and installation across multiple OSes 2024-09-06 16:44:07 +08:00
Frank Qing 5e1595812c Enable zsh-autosuggestions plugin and comment out marker.sh source 2024-05-01 13:26:15 +08:00
Frank Qing 9e9672862c Update marker.sh path in .zshrc 2024-05-01 13:22:05 +08:00
Frank Qing f6881d46a2 Update ZSH_THEME to powerlevel10k/powerlevel10k 2024-05-01 13:18:58 +08:00
Frank Qing cdf05a1601 Update .zshrc with Powerlevel10k instant prompt and apply patch 2024-05-01 13:04:41 +08:00
Frank Qing b80464b17a Add directory creation for ZSH_CONFIGS_DIR 2024-05-01 12:47:16 +08:00
Frank Qing ff76824283 Customize zsh installation 2024-05-01 12:31:40 +08:00
JGill 65ee0ef0b4 Fix Ctr+r setup by fzf 2021-10-13 12:44:08 +05:30
JGill 031809b3ff Change ZDORDIR to ZSH_CONIGS_DIR, fixes .zcomdump files issue 2021-09-26 15:06:14 +05:30
JGill 431b81b2a7 Making aliases work, that relay on oh-my-zsh plugins 2021-09-25 10:41:48 +05:30
JGill 4601516785 Upload base .zshrc 2021-09-20 09:46:22 +05:30
JGill a492680f71 Rename .zshrc to ezshrc.zsh 2021-09-20 08:04:51 +05:30
JGill 61c50f8307 Set new path to oh-my-zsh 2021-09-20 07:12:30 +05:30
JGill 3e387d0b5f Change .zcompdump location 2021-09-16 14:32:35 +05:30
JGill 7f8707244b Removed additional aliases but kept extract() 2021-09-16 12:51:47 +05:30
Siddharth More ebbf091ee6 Fix 2021-06-11 13:02:55 +05:30
Siddharth More 04714c3c05 Added my aliases 2021-06-11 13:01:24 +05:30
Siddharth More 6b95781879 Merge branch 'master' of github.com:sidmoreoss/quickz-sh into develop 2021-06-11 12:50:26 +05:30
Siddharth More e5ad7628a6 Changed install directory 2021-06-11 12:38:33 +05:30
Siddharth More ff6c9b9390 Added my aliases 2021-05-15 20:14:50 +05:30
JGill a58c89d81f Remove https() as the httpie plugin now creates this alias #9 2020-07-23 09:05:18 +09:30
JGill d1acdada26 Added 'geoip' 'corona' 2020-03-30 17:37:31 +10:30
JGill ab6e45ee4f easier cheats 2020-02-25 17:55:49 +10:30
JGill 8c3292f9ec Using much faster powerlevel10k 2020-01-25 16:38:12 +10:30
JGill cd291bd082 k : show human readable filesizes, in kb, mb etc by default 2019-12-06 14:17:54 +10:30
JGill 9dc22b3ec3 Added more aliases, speedtest, dict etc 2019-08-21 17:04:58 +09:30
JGill bb02f55bfc Added alias x="exit" 2018-11-02 17:46:21 +10:30