forked from Bash-it/bash-it
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bats-precommit
- Loading branch information
Showing
54 changed files
with
1,622 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
# shellcheck shell=bash | ||
about-alias 'kubectl aliases' | ||
|
||
function _set_pkg_aliases() { | ||
if _command_exists kubectl; then | ||
alias kc='kubectl' | ||
alias kcgp='kubectl get pods' | ||
alias kcgd='kubectl get deployments' | ||
alias kcgn='kubectl get nodes' | ||
alias kcdp='kubectl describe pod' | ||
alias kcdd='kubectl describe deployment' | ||
alias kcdn='kubectl describe node' | ||
alias kcgpan='kubectl get pods --all-namespaces' | ||
alias kcgdan='kubectl get deployments --all-namespaces' | ||
# launches a disposable netshoot pod in the k8s cluster | ||
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash' | ||
fi | ||
} | ||
|
||
_set_pkg_aliases | ||
if _command_exists kubectl; then | ||
alias kc='kubectl' | ||
alias kcgp='kubectl get pods' | ||
alias kcgd='kubectl get deployments' | ||
alias kcgn='kubectl get nodes' | ||
alias kcdp='kubectl describe pod' | ||
alias kcdd='kubectl describe deployment' | ||
alias kcdn='kubectl describe node' | ||
alias kcgpan='kubectl get pods --all-namespaces' | ||
alias kcgdan='kubectl get deployments --all-namespaces' | ||
# launches a disposable netshoot pod in the k8s cluster | ||
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# shellcheck shell=bash | ||
|
||
if _command_exists aws_completer | ||
then | ||
if _command_exists aws_completer; then | ||
complete -C "$(command -v aws_completer)" aws | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/bash | ||
# shellcheck shell=bash | ||
|
||
if _command_exists flutter; then | ||
eval "$(flutter bash-completion)" | ||
eval "$(flutter bash-completion)" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# shellcheck shell=bash | ||
about-completion "yarn cli completions" | ||
|
||
# shellcheck disable=SC1090 source=../../vendor/github.com/dsifford/yarn-completion/yarn | ||
source "${BASH_IT}/vendor/github.com/dsifford/yarn-completion/yarn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.