Actualiser zsh/zshrc
remove Fabric AI configs
This commit is contained in:
@@ -107,35 +107,6 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# 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
|
# Homebrew
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user