Skip to main content

generate_posix_hook

Function generate_posix_hook 

Source
pub fn generate_posix_hook() -> String
Expand description

Generates POSIX-compatible shell integration functions for Bash and Zsh.

:return: Shell script containing claw and git wrapper functions.

ยงExample

use git_claw::workflow::shell::generate_posix_hook;

let script = generate_posix_hook();
assert!(script.contains("claw()"));
assert!(script.contains("main_dest"));
assert!(script.contains("should_cd"));