feat(shell): add poke function and update fish-deps for ov and yay

- Add poke: touch with automatic parent directory creation; prints
  colored notice when new dirs are created; handles multiple file args
- Refactor config.fish CachyOS override block: consolidate copy into
  the erase+source loop alongside ls/lt/cleanup
- fish-deps: replace most with ov (cargo crate + AUR pkg); add yay as
  rec dep with yay-build special (paru -S yay or AUR makepkg); add
  update handling for yay-build in _fish_deps_update
- README: document poke in Directory & File Listing table
This commit is contained in:
2026-06-03 22:52:49 -04:00
parent 40021dcc21
commit c97c2290eb
6 changed files with 76 additions and 38 deletions
+17
View File
@@ -0,0 +1,17 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function poke --description 'touch with automatic parent directory creation'
if test (count $argv) -eq 0
echo (set_color red)"poke: no file specified"(set_color normal) >&2
return 1
end
for _path in $argv
set -l _dir (dirname $_path)
if not test -d $_dir
mkdir -p $_dir
and echo (set_color --bold cyan)"Created: "(set_color cyan)"$_dir"(set_color normal)
end
touch $_path
end
end