My plugin for oh-my-zsh - functions and aliases
This plugin is meant to make my workflow more efficient by adding functions and aliases that make sense for me. Feel free to use it though :)
- Clone the repo to your custom oh-my-zsh plugins:
git clone https://github.com/gcarrarom/oh-my-guish.git ${ZSH_CUSTOM}/plugins/oh-my-guish
- Add
oh-my-guish
to your~/.zshrc
plugins array:
plugins=(
git
kubectl
zsh-autosuggestions
alias-tips
oh-my-guish
helm
)
Here's the list of features of this ZSH plugin:
Commands to make things easier
This makes a directory and changes the location of the terminal to it.
This function uses the service from Frightanic to generate random names based on Docker's code.
These Azure commands were created to make it easier to navigate through the resources.
This command is going to list all the subscriptions available to your current token, and then use fzf
to select which one you would like to use
This command gets all the resource groups from the subscription and lets you select the one you want to be used as default for the subsequent az cli commands.
use azgroup all
to reset.
This is going to ask for the subscription and resource group of your cluster using fzf
, then it's going to get your cluster credentials using this command: az aks get-credentials
This is going to ask for the subscription and resource group of your cluster using fzf
, then it's going to get your cluster credentials using this command: az aks get-credentials --admin
Who wants to type big commands anyways?!
All the aliases that were missing from the default K8s plugin for oh-my-zsh. To create those aliases I've followed the same pattern as the plugin, so it could feel natural to someone already using it. This is meant to be an extension rather than substitute the existing k8s plugin.
This depends on the installation of the Fancy Abak tool.
To ignore, please set OHMYGUISH_ABAK_IGNORE=true
on your .zshrc
file.
This depends on the installation of the Fancy Jira tool.
To ignore, please set OHMYGUISH_JIRA_IGNORE=true
on your .zshrc
file.
These are the aliases specific for MAcOS.
This alias locks the computer
This alias sends the file selected to yoink, so you don't have to use the cursor to grab files to yoink.