https://github.com/mhio/short
command line shorteners (docker,git,kubectl)
https://github.com/mhio/short
docker git kubectl kubernetes
Last synced: 2 months ago
JSON representation
command line shorteners (docker,git,kubectl)
- Host: GitHub
- URL: https://github.com/mhio/short
- Owner: mhio
- License: mit
- Created: 2018-08-30T23:51:25.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T12:13:47.000Z (12 months ago)
- Last Synced: 2025-01-30T12:28:32.188Z (4 months ago)
- Topics: docker, git, kubectl, kubernetes
- Language: Shell
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git, Docker and Kubernetes shell helpers
v0.6.0 - back to the sh
## Usage
```
cd ~
git clone https://github.com/mhio/short.git
````d` `g` and `k` scripts are supplied:
```
~/short/d run -ti --rm docker.io/debian echo it is $(date)
```Or source the main scripts and create alias entries to the shortcuts (like `d`) in an rc file
```
# short docker, kubectl, git https://github.com/mhio/short
source ~/short/docker.sh
alias d=dockerShort
source ~/short/kubectl.sh
alias k=kubectlShort
source ~/short/git.sh
alias g=gitShort
```Then run
```
g s
d ps
k g all
```## Git
```
$ g h
the (g)it function - g (a b c d l s)
g a(dd)
g b(ranch)
g c(ommit)
g d(iff)
g l(og)
g s(tatus)
```## Docker
```
$ d h
the (d)ocker function - d (b r c i n v)
d b(uild)
d r(un)
d c(ontainer)
d i(mage)
d psa List all
d rme Remove Exited/Created
d rmin Remove images
```## Kubernetes
```
the (k)ubectl function - k ()
k c(reate)
k a(pply)
k r(un)
k s(et)
k g(get)
k d(escribe)
k e(dit)
k del(ete)
k l(ogs)
k ex(ec)
k api-v(ersion)
k api-r(esources)
```