Skip to content

Instantly share code, notes, and snippets.

@jpweber

jpweber/config.fish

Last active May 22, 2020
Embed
What would you like to do?
config.fish
# Load fishmarks (http://github.com/techwizrd/fishmarks)
. $HOME/.fishmarks/marks.fish
fish_vi_key_bindings
alias rmi "rm -i"
alias ark "docker run --rm -u (id -u) -v ~/.kube/config:/kubeconfig -e KUBECONFIG=/kubeconfig gcr.io/heptio-images/ark:latest"
alias oc "code ."
# kubernets aliases
alias kget "kubectl get"
alias klogs "kubectl logs"
set -x GOPATH1 $HOME/Development/go
set -x GOPATH2 $HOME/Development/heptio/go
set -gx GOPATH $GOPATH1:$GOPATH2
set -gx PATH $PATH $GOPATH1/bin
set -gx PATH $PATH $GOPATH2/bin
set -x SHELL /bin/bash
set -x KUBECONFIG (find ~/.kube -type f -name '*kubeconfig*' | tr '\n' ':' | sed 's/:$//')
source ~/.iterm2_shell_integration.fish
@zx1986

This comment has been minimized.

Copy link

@zx1986 zx1986 commented Jul 4, 2019

export KUBECONFIG=$(find ~/.kube -type f -name '*kubeconfig*' | tr '\n' ':' | sed 's/:$//')

nice!

@Boztown

This comment has been minimized.

Copy link

@Boztown Boztown commented May 22, 2020

Yes! Thanks for the KUBECONFIG line. I yanked it for myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.