The goal of this repository is to add the command kubebash
that starts bash with jonmosco/kube-ps1 enabled and be able to Ctrl
+D
out of it while preserving your $PS1
settings.
KUBEBASH_INSTALL_DIR="${HOME}/.midlan_kubebash" && \
git clone --depth 1 --recurse-submodules --shallow-submodules [email protected]:midlan/kubebash.git "${KUBEBASH_INSTALL_DIR}" && \
rm -rf "${KUBEBASH_INSTALL_DIR}/.git" "${KUBEBASH_INSTALL_DIR}/jonmosco_kube-ps1/.git" && \
echo -e "# kubebash\n. ${KUBEBASH_INSTALL_DIR}/kubebash.sh" >> ~/.bashrc
You can change install location by changing KUBEBASH_INSTALL_DIR
variable. By default, there will be created directory .midlan_kubebash
in your home directory.
- start new bash shell
- execute
kubebash
command