Skip to content

Commit

Permalink
fix: option to disable kcl alias (#99)
Browse files Browse the repository at this point in the history
kcl alias conflicts with KCL language alias
https://www.kcl-lang.io/

Signed-off-by: Ievgenii Shepeliuk <[email protected]>
  • Loading branch information
eshepelyuk authored May 18, 2024
1 parent cf0d13a commit 87c7e9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export PS1="\[$(kube_ctx_namespace)\] $PS1"
`fubectl` can be customized via following environment variables

* `FUBECTL_WATCH_CMD` - alterative `watch` command, e.g. [viddy](https://github.com/sachaos/viddy)
* `FUBECTL_NO_KCL` - disable `kcl` alias, since it may conflict with [KCL language CLI](https://www.kcl-lang.io/)

## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion fubectl.source
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function ksearch() {
}

# [kcl] context list
alias kcl='kubectl config get-contexts'
[ -z "${FUBECTL_NO_KCL}" ] && alias kcl='kubectl config get-contexts'

# [kcs] context set
function kcs() {
Expand Down

0 comments on commit 87c7e9a

Please sign in to comment.