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 script to help alleviate these issues, and realized the whole world of opportunity I had to help optimize my own daily workflows on the terminal.
I knew I was not the only one who had suffered from these productivity issues as my co-workers saw interest in the tool I was developing. Upon this I decided to start developing a more generic and robust version of my original tool to allow developers across the world optimize their productivity with this tool too!
I am developing this project in my spare time to help developer's across the globe maximize their productivity in the terminal. If you have found this tool useful please leave a star on this repository it really helps me out! I also have a buymeacoffee sponsor link if you would like to help me to continue to be able to develop OSS in spare time by helping me stay caffeinated and coding. ☕ ⚡
The dependencies include:
openssl
for the Random String Generation commands.git
for all Git Automation commands.- Visual Studio Code for the
vsc
code editor command. - XCode for the
xc
code editor command (only available for Macintosh systems). speedtest
(the Ookla speedtest-cli) for runnning network speed tests. The installation commands for this on MacOS and Debian are insetup.sh
.
- 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 installation
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
Please note any command with an argument in angle brackets below (ie. <branch>
) denotes a dynamic variable which is given by the user. If the text inside these angle has a ?
character at the end (ie. <branch?>
) this denotes that this argument is optional and if left empty will fallback to the default.
<branch?>
: if left empty the current branch will be used<org?>
: if left empty the default GitHub organisation set inmyorgs
will be used- Any other optional arguments that you omit will be prompted upon execution
**Note: all commands below should be preceded by the wyx
command, this was ommitted for readability.**
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 Branchrepo
: 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 Notificationscommits
: 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 GitHubprofile
: View Your GitHub Profileorg
: View Your GitHub Organisationpp
: Pull-Push Git Changes to Current Branch
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