From a51bf22916296d09fafbd08b8e1496402823898f Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sat, 27 Sep 2025 14:12:10 +0000 Subject: [PATCH] Actualiser zsh/zshrc remove Fabric AI configs --- zsh/zshrc | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 9228215..f83a36f 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -107,35 +107,6 @@ source $ZSH/oh-my-zsh.sh # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -# Fabric AI -alias fabric='fabric-ai' -# Loop through all files in the ~/.config/fabric/patterns directory -for pattern_file in $HOME/.config/fabric/patterns/*; do - # Get the base name of the file (i.e., remove the directory path) - pattern_name=$(basename "$pattern_file") - - # Create an alias in the form: alias pattern_name="fabric --pattern pattern_name" - alias_command="alias $pattern_name='fabric --pattern $pattern_name'" - - # Evaluate the alias command to add it to the current shell - eval "$alias_command" -done - -yt() { - if [ "$#" -eq 0 ] || [ "$#" -gt 2 ]; then - echo "Usage: yt [-t | --timestamps] youtube-link" - echo "Use the '-t' flag to get the transcript with timestamps." - return 1 - fi - - transcript_flag="--transcript" - if [ "$1" = "-t" ] || [ "$1" = "--timestamps" ]; then - transcript_flag="--transcript-with-timestamps" - shift - fi - local video_link="$1" - fabric -y "$video_link" $transcript_flag -} # Homebrew eval "$(/opt/homebrew/bin/brew shellenv)"