Skip to content

gcarrarom/oh-my-guish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oh-my-guish

My plugin for oh-my-zsh - functions and aliases

Description

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 :)

Installation

  1. 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

  1. Add oh-my-guish to your ~/.zshrc plugins array:
plugins=(
    git
    kubectl
    zsh-autosuggestions
    alias-tips
    oh-my-guish
    helm
)

Features

Here's the list of features of this ZSH plugin:

Functions

Commands to make things easier

mkdircd

This makes a directory and changes the location of the terminal to it.

randomdocker

This function uses the service from Frightanic to generate random names based on Docker's code.

Azure

These Azure commands were created to make it easier to navigate through the resources.

azacc

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

azgroup

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.

getcredentialsaks

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

getcredentialsaks-admin

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

Kubernetes

Aliases

Who wants to type big commands anyways?!

Kubernetes

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.

Fancy Abak

This depends on the installation of the Fancy Abak tool.

To ignore, please set OHMYGUISH_ABAK_IGNORE=true on your .zshrc file.

Fancy Jira

This depends on the installation of the Fancy Jira tool.

To ignore, please set OHMYGUISH_JIRA_IGNORE=true on your .zshrc file.

MacOS

These are the aliases specific for MAcOS.

lock

This alias locks the computer

yoink

This alias sends the file selected to yoink, so you don't have to use the cursor to grab files to yoink.