Bash Directory Stack: pushd, popd, and Reliable Navigation
Use Bash dirs, pushd, and popd with explicit stack ownership, safe path handling, rotation semantics, and script-safe directory changes.
tag
11 posts
Use Bash dirs, pushd, and popd with explicit stack ownership, safe path handling, rotation semantics, and script-safe directory changes.
Use Bash PROMPT_COMMAND for interactive-shell hooks without losing the previous command status, overwriting other hooks, or slowing every prompt.
Use Bash select for small interactive menus while handling REPLY, invalid choices, redirected input, repeated actions, and EOF explicitly.
Use Fish abbreviations as visible command-line transformations with precise context, regex and function rules, cursor placement, persistence, and tests.
Design Fish completions as a command interface: model option context, control file candidates, generate safe values, and test behavior with complete -C.
Trace Fish history storage, session names, merging, search and deletion semantics, private mode, and practical recovery steps across concurrent shells.
Map Fish key sequences to editor actions with explicit modes, command-line buffer operations, repaint rules, terminal diagnostics, and repeatable integration tests.
Map Fish startup order across user, system, and vendor snippets; gate login and interactive work, diagnose collisions, and keep shell startup predictable.
Reason about tcsh alias expansion order, history references, argument preservation, recursive rewrites, and the boundary between aliases and functions.
Understand how tcsh classifies completion targets, tune fignore and autolist, and test interactive completion without changing files.
Use tcsh event and word designators safely, preview substitutions with :p, and control what interactive history preserves.