tcsh -c "..."is non-interactive, so$?promptis false and the script exits at the guard. Usetcsh -ior pipe commands to test interactive behavior.- tcsh has no functions. Use wrapper scripts (written to
/tmp) for complex logic like AppImage lazy extraction.
- Check FUSE with
fusermount --version, notfusermount3(older systems only have fusermount v2). --appimage-extractcreatessquashfs-root/relative to CWD. Alwayscdto the target directory first.- Extracted nvim binary is at
squashfs-root/usr/bin/nvim.
- Setting
EDITOR=nvimwhen nvim is only an alias (not on PATH) doesn't work for external programs likegit commit. Always set EDITOR to a full executable path. - For FUSE case: set to the AppImage path directly.
- For no-FUSE case: generate a wrapper script in
/tmpand set EDITOR to its path.