Skip to content

Commit

Permalink
Merge pull request #7 from dwertent/minor-fixes
Browse files Browse the repository at this point in the history
Resolving issues
  • Loading branch information
David Wertenteil authored Nov 12, 2023
2 parents 824780d + 392731a commit 084caf6
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 23 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,24 @@ Clone project and add to `~/.bashrc` file ->
| alias | command |
| --- | --- |
| `ke` | `kubectl get` |
| `kens` | `kubectl get namespaces` |
| `kep` | `kubectl get pods` |
| `ked` | `kubectl get deployments` |
| `kes` | `kubectl get secret` |
| `kers` | `kubectl get replicasets` |
| `kess` | `kubectl get statefulsets` |
| `keds` | `kubectl get daemonsets` |
| `kesvc` | `kubectl get services -o wide` |
| `ken` | `kubectl get nodes -o wide` |
| `kecm` | `kubectl get configmaps` |
| `kecj` | `kubectl get cronjobs` |
| `kej` | `kubectl get jobs` |
| `kesa` | `kubectl get serviceaccounts` |
| `ker` | `kubectl get roles` |
| `kerb` | `kubectl get rolebindings` |
| `kecr` | `kubectl get clusterroles` |
| `kecrb` | `kubectl get clusterrolebindings` |
| `kg` | `kubectl get` |
| `kgns` | `kubectl get namespaces` |
| `kgp` | `kubectl get pods` |
| `kgd` | `kubectl get deployments` |
| `kgs` | `kubectl get secret` |
| `kgrs` | `kubectl get replicasets` |
| `kgss` | `kubectl get statefulsets` |
| `kgds` | `kubectl get daemonsets` |
| `kgsvc` | `kubectl get services -o wide` |
| `kgn` | `kubectl get nodes -o wide` |
| `kgcm` | `kubectl get configmaps` |
| `kgcj` | `kubectl get cronjobs` |
| `kgj` | `kubectl get jobs` |
| `kgsa` | `kubectl get serviceaccounts` |
| `kgr` | `kubectl get roles` |
| `kgrb` | `kubectl get rolebindings` |
| `kgcr` | `kubectl get clusterroles` |
| `kgcrb` | `kubectl get clusterrolebindings` |
#### DESCRIBE
Expand Down
9 changes: 4 additions & 5 deletions kubectl_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ alias kgrb='kubectl get rolebindings'
alias kgcr='kubectl get clusterroles'
alias kgrb='kubectl get clusterrolebindings'
alias kgsa='kubectl get sa'
alias kgnet='kubectl get netpol'
alias kgnp='kubectl get netpol'

# edit
alias ke='kubectl edit'
Expand All @@ -43,11 +43,10 @@ alias kesvc='kubectl edit svc'
alias kecm='kubectl edit cm'
alias kecj='kubectl edit cj'
alias ker='kubectl edit roles'
alias kerb='kubectl edit rolebindings'
alias kecr='kubectl edit clusterroles'
alias kerb='kubectl edit clusterrolebindings'
alias kesa='kubectl edit sa'
alias kenet='kubectl edit netpol'
alias kenp='kubectl edit netpol'

# describe
alias kd='kubectl describe'
Expand All @@ -67,7 +66,7 @@ alias kdr='kubectl describe roles'
alias kdrb='kubectl describe rolebindings'
alias kdcr='kubectl describe clusterroles'
alias kdcrb='kubectl describe clusterrolebindings'
alias kdnet='kubectl describe netpol'
alias kdnp='kubectl describe netpol'

# delete
alias kdel='kubectl delete'
Expand All @@ -87,7 +86,7 @@ alias kdelrb='kubectl delete rolebindings'
alias kdelcr='kubectl delete clusterroles'
alias kdelrb='kubectl delete clusterrolebindings'
alias kdelsa='kubectl delete sa'
alias kdelnet='kubectl delete netpol'
alias kdelnp='kubectl delete netpol'

# mock
alias kmock='kubectl create mock -o yaml --dry-run=client'
Expand Down
33 changes: 33 additions & 0 deletions mac_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## get rid of command not found ##
alias cd..='cd ..'

## a quick way to get out of current directory ##
alias ..='cd ..'
alias .1='cd ..'
alias ...='cd ../../../'
alias .2='cd ../../../'
alias ....='cd ../../../../'
alias .3='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'

## Use a long listing format ##
alias ll='ls -la --color=auto -h'
alias ls='ls -la --color=auto -h'
alias df='df -H'
alias du='du -ch'

## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

## Start calculator with math support
alias bc='bc -l'

## Create parent directories on demand
alias mkdir='mkdir -pv'

## Colorize diff output
# // install colordiff package
alias diff='colordiff'

0 comments on commit 084caf6

Please sign in to comment.