- Replace sync-config/sync-script with mise.toml [dotfiles] directives - Convert installer scripts to mise tasks (shells, desktop, theme, webapps) - Remove config/nvim-old (deprecated neovim config) - Add omarchy theme system with multi-app configs (btop, hyprland, kitty, foot, tmux, etc.) - Move SSH hosts to config.d/* include pattern - Add Tera templates for dynamic config generation (git-local, dofiles.conf) - Update pi agent settings (0.80.10, packages list) - Add mise tasks for pi plugin setup and nvim tooling
40 lines
677 B
Bash
Executable File
40 lines
677 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
required_tools=(realpath nvim)
|
|
missing=()
|
|
|
|
for tool in "${required_tools[@]}"; do
|
|
if ! command -v "$tool" &> /dev/null; then
|
|
missing+=("$tool")
|
|
fi
|
|
done
|
|
|
|
if [ "${#missing[@]}" -ne 0 ]; then
|
|
echo "$0: error: missing required tools: ${missing[*]}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
for arg in "$@"; do
|
|
if [ -d "$arg" ]; then
|
|
echo "$0: error: '$arg' is a directory" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
if [ ! -z "$NVIM" ]; then
|
|
# inside neovim
|
|
if [ "$#" -ne "0" ]; then
|
|
realpath --zero "$@" | xargs -0 -n1 nvim --server "$NVIM" --remote
|
|
fi
|
|
exit
|
|
fi
|
|
|
|
# outside neovim
|
|
|
|
if [ "$#" -eq "0" ]; then
|
|
nvim
|
|
exit
|
|
fi
|
|
|
|
nvim "$@"
|