mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 21:22:25 +00:00
Add support for kubectl krew
This commit is contained in:
parent
51dfc7962b
commit
38871ce2d4
|
@ -7,16 +7,22 @@
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
# Disable Ansible cowsay
|
# Disable Ansible cowsay
|
||||||
export ANSIBLE_NOCOWS=1
|
export ANSIBLE_NOCOWS=1
|
||||||
|
|
||||||
# Include ~/.bin to PATH
|
# Include ~/.bin to PATH
|
||||||
if [ -d "$HOME/.bin" ] ; then
|
if [ -d "${HOME}/.bin" ] ; then
|
||||||
export PATH="$HOME/.bin:$PATH"
|
export PATH="${HOME}/.bin:${PATH}"
|
||||||
fi
|
fi
|
||||||
# Include ~/.local/bin to PATH
|
# Include ~/.local/bin to PATH
|
||||||
if [ -d "$HOME/.local/bin" ] ; then
|
if [ -d "${HOME}/.local/bin" ] ; then
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="${HOME}/.local/bin:${PATH}"
|
||||||
|
fi
|
||||||
|
# Inclue ~/.krew/bin to PATH for krew kubectl extensions
|
||||||
|
if [ -d "${HOME}/.krew/bin" ] ; then
|
||||||
|
export PATH="${HOME}/.krew/bin:${PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Connect to windows ssh pageant
|
# Connect to windows ssh pageant
|
||||||
|
# https://github.com/BlackReloaded/wsl2-ssh-pageant
|
||||||
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock
|
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock
|
||||||
ss -a | grep -q $SSH_AUTH_SOCK
|
ss -a | grep -q $SSH_AUTH_SOCK
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -25,6 +31,7 @@ if [ $? -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Connect to windows gpg agent
|
# Connect to windows gpg agent
|
||||||
|
# https://github.com/BlackReloaded/wsl2-ssh-pageant
|
||||||
export GPG_AGENT_SOCK=$HOME/.gnupg/S.gpg-agent
|
export GPG_AGENT_SOCK=$HOME/.gnupg/S.gpg-agent
|
||||||
ss -a | grep -q $GPG_AGENT_SOCK
|
ss -a | grep -q $GPG_AGENT_SOCK
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -34,3 +41,4 @@ fi
|
||||||
|
|
||||||
# X410 (Windows X11 Server)
|
# X410 (Windows X11 Server)
|
||||||
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
|
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue