[Windows] Custom fabric function setup & Powershell Profile editing #633
Gerkinfeltser
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, I've been learning alot about how Windows Powershell works as I use LLMs & thought this might be of use to others.
A couple of notes: I'm on Windows 10, though I assume it works the same on other versions of Windows Powershell (details on where & how to save the function are at the end of this post). Also, Windows Powershell is different than cmd.exe so this won't work if you're just using the default Windows command prompt! Also, It's definitely still a WIP as I'm learning as I'm going...
The
fabric-yt
functionI wanted to reduce the amount of typing to do basic fabric stuff so I setup a custom fabric calling function for my Powershell profile.
The function does a few things I find useful when dealing with YouTube videos, which is my most common usage of fabric at this time.
The function does the following:
summarize
if none is provided.)yt
&fabric
response.-c
(context) flagfabric-yt
Example usage:
After editing your Powershell profile (as outlined below) you can run the function like this for a fabric
summarize
:This will run fabric's
extract_wisdom
This is what the [heavily-abridged] response looks like:
Here is how to setup the alias on a Powershell profile
1a) (Optional) See the Powershell profile in use:
echo $PROFILE
code $PROFILE
Hope this helps someone else out, or at least saves you a few keystrokes! :D
Beta Was this translation helpful? Give feedback.
All reactions