DEV Community

Cover image for How SHELL-GPT Revolutionized My Workflow
karleeov
karleeov

Posted on

How SHELL-GPT Revolutionized My Workflow

Hey everyone, I just had to share my excitement about this incredible tool called SHELL-GPT. As a casual blogger and tech enthusiast, I'm always on the lookout for ways to streamline my work and make my life easier. Well, let me tell you, SHELL-GPT has been an absolute game-changer!

First off, for those of you who aren't familiar with SHELL-GPT, it's like having a super-smart AI assistant right in your terminal. You can ask it questions, get it to explain complex concepts, and even have it write code snippets for you. It's like having a geeky best friend who's always ready to help out.

Now, I know some of you might be thinking, "But Karl, I'm not a hardcore Linux user. Is this really for me?" Trust me, if I can get it up and running, anyone can! I'm using Arch Linux, and the setup process was a breeze. Here's a quick guide to get you started:

Open up your terminal and run:

sudo pacman -S python-pipx
Enter fullscreen mode Exit fullscreen mode

This command installs pipx, which is a handy tool for installing and managing Python applications.
Once pipx is installed, simply run:

pipx install shell-gpt
Enter fullscreen mode Exit fullscreen mode

This command will install SHELL-GPT and all its dependencies in an isolated environment.
Now, you might run into a small hiccup where running the sgpt command gives you a "command not found" error. Don't worry, it's an easy fix! Just run:

pipx ensurepath
Enter fullscreen mode Exit fullscreen mode

This command automatically adds the directory where pipx installs binaries to your PATH.
If you're using zsh like me and prefer to manually add the directory to your PATH, open up your .zshrc file with:

nano ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Then, add the following line at the end of the file:

export PATH="$HOME/.local/bin:$PATH"
Enter fullscreen mode Exit fullscreen mode

Save the file by pressing Ctrl+X, then Y, and finally Enter.
To apply the changes, reload your zsh configuration by running:
source ~/.zshrc
And that's it! You're ready to start using SHELL-GPT. Give it a test drive by running something like:
sgpt "What is the Fibonacci sequence?"
Since I've started using SHELL-GPT, my productivity has skyrocketed. I can quickly get answers to my coding questions, generate helpful code snippets, and even have it proofread my blog posts for clarity and grammar. It's like having a secret weapon in my arsenal.

So, if you're looking to supercharge your workflow and have a bit of fun along the way, give SHELL-GPT a try. Trust me, you won't regret it! Happy coding, everyone!

Top comments (0)