name: fish description: Fish shell conventions metadata: globs: "fish/**/*.fish"
Fish Shell Conventions
Follow official Fish shell conventions:
- Use
snake_casefor function and variable names - Prefix private/internal functions with
_(e.g.,_fzf_search_directory) - Use
set -gfor global variables,set -lfor local - Prefer Fish builtins over external commands when possible
- Use
testinstead of[for conditionals - Use
stringbuiltin for string manipulation - Keep functions focused and single-purpose
Example Function Structure
function my_function --description "Brief description"
# Implementation
end