Optimize your development productivity in the terminal
Provides developers with the ability for optimising the execution of commonly performed tasks, commands, directory navigations, and environment setups/script executions.
I found myself executing the same commands repeatedly, finding navigation on the terminal for frequently accessed locations needlessly slow, and the task of pushing out new code via manually submitting a PR on my browser repetitive and time-wasting. I decided to start developing my own bash scripting library to help alleviate these issues, and realized the whole world of opportunity I had to help optimize my own daily workflows on the terminal. Due to my experience working simultaneously on Mac and Linux machines one of the key parts of the WYX-CLI project was to also allow the same code to run in different shells and operating systems.
If you have found this tool useful/insightful please leave a ⭐ on the repository it really helps me out!
I also have a buymeacoffee sponsor link if you would like to help turn my caffeine addiction into a problem ☕⚡
- Clone this repository into a folder of your choice:
git clone git@github.com:hwixley/WYX-CLI.git
- Navigate into the directory:
cd WYX-CLI
- Give permissions to the setup script and run it:
chmod +x setup.sh && ./setup.sh
- Reopen your terminal or run
source ~/.bashrc
(source ~/.zshrc
for unix systems)
Type wyx
to see the list of commands and start developing some magic!
- You can use OpenAI's ChatGPT to write commit messages for you (using
git diff
andgit status
outputs) when using thewyx push
command. This requires an OpenAI API key.
wyx setup smart_commit
- Remove your cloned repository
rm -rf <path-of-installation>
- Remove the wyx-cli script setup in your environment file
- Open the file in an editor: (
~/.bashrc
for linux systems, and~/.zshrc
for unix systems)Ifgedit ~/.bashrc
gedit
is not available you can always use vim instead:vi ~/.bashrc
- Remove the 2 lines for the wyx-cli:
- The first line is a comment:
# WYX-CLI
- The second line is where the command is actually setup:
alias wyx="<path-of-installation>/wyx-cli.sh"
- The first line is a comment:
- Open the file in an editor: (
- Follow the installation instructions
View current dependencies for your system by running:
wyx list-deps
version
: WYX-CLI Version
sys-info
: Get Detailed System Information
install-deps
: Install WYX-CLI dependenciesupdate-deps
: Update the project dependencieslist-deps
: List the project dependencies
cd
: Navigate Directory Aliasesback
: Go Back A Directory
run
: Run Script Aliasesvsc
: Open Directory Aliases in VSCode
ginit
: Initialise Git Repositorypush
: Add-Commit-Push Git Changes to Current Branchpull
: Pull Git Changes for Current Branchmpull
: Checkout-Pull Git Changes From Master/Main Branchcommits
: View Your Branch Git Commitslastcommit
: View Your Last Commit & Copy It's IDnb
: Checkout-Add-Commit-Push A New Git Branchpr
: Open A Pull Request From Your Current Git Branch on GitHubbpr
: Checkout-Add-Commit-Push A New Git Branch & Open A PR For It On GitHubpp
: Pull-Push Git Changes to Current Branch
repo
: View Your Repository On GitHubbranch
: View Your Current Branch On GitHubactions
: View Your Repository Actions On GitHubissues
: View Your Repository Issues On GitHubprs
: View Your Repository PRs On GitHubnotifs
: View Your GitHub Notificationsprofile
: View Your GitHub Profile
user
: View Your User Configurationmydirs
: View Your Directory Aliases Configurationmyorgs
: View Your GitHub Organisation Configurationmyscripts
: View Your Scripts Configurationtodo
: View Your To-Do List
editd
: Edit Your WYX-CLI Configurationedits
: Edit A Script Filenewscript
: Create A New Script
keystore
: Add a key-value pair to your '.env' keystoresetup
: Setup WYX-CLI Third Party API-based utilities
find
: Regex Search Current Directory For Filefopen
: Open current directory in your files applicationencrypt
: Encrypt a file using GPGdecrypt
: Decrypt a GPG-encrypted file
ip
: View Your Local & Public IPswifi
: View Available WiFi Networkshardware-ports
: View Your Hardware Portswpass
: View Your Saved WiFi Passwordsspeedtest
: Run A Speed Test On Your Network
genqr
: Generate a QR code from a URLupscale
: Scale up an image (uses no smoothing)
genpass
: Generate A Random Passwordgenhex
: Generate A Random Hex Stringgenb64
: Generate A Random Base64 Stringlastcmd
: Copy Your Last Command To Your Clipboardcopy
: Copy output of a command to clipboard
webtext
: Read-only websites in your terminal
weather
: View the weather forecast for your location in the terminalmoon
: View the moon phaseleap-year
: Check when the next leap year is
help
: View WYX-CLI Documentationexplain
: Explain a bash commandask-gpt
: Start a conversation with ChatGPTgoogle
: Google a query