1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2025-12-07 05:22:34 -06:00
dotfiles/fish/functions/__z_clean.fish
Kaan Barmore-Genc 7c6ca0f18b Add Neovim, Fish, Zellij, Htop, and ASDF configurations to Dotter
Migrated all high-priority development configs to Dotter management:
- Neovim: Lazy.nvim setup with hop and mini-surround plugins
- Fish Shell: Complete config with Fisher plugins (done, z, sponge)
- Zellij: Terminal multiplexer with vim-like keybindings
- Htop: System monitor preferences
- ASDF: Version manager configuration

Templates created for git/gitconfig and fish/config.fish to handle
machine-specific variables (git_name, git_email, brew_path).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-15 22:16:04 -06:00

12 lines
341 B
Fish

function __z_clean -d "Clean up .z file to remove paths no longer valid"
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
if test -f $tmpfile
while read line
set -l path (string split '|' $line)[1]
test -d $path; and echo $line
end <$Z_DATA >$tmpfile
command mv -f $tmpfile $Z_DATA
end
end