Skip to main content

generate_fish_hook

Function generate_fish_hook 

Source
pub fn generate_fish_hook() -> String
Expand description

Generates native shell integration functions for Fish shell.

:return: Fish script containing claw and git function definitions.

ยงExample

use git_claw::workflow::shell::generate_fish_hook;

let script = generate_fish_hook();
assert!(script.contains("function claw"));
assert!(script.contains("function git"));
assert!(script.contains("main_dest"));
assert!(script.contains("should_cd"));