aboutsummaryrefslogtreecommitdiff
path: root/dot_bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'dot_bashrc')
-rw-r--r--dot_bashrc11
1 files changed, 10 insertions, 1 deletions
diff --git a/dot_bashrc b/dot_bashrc
index 4c6db13..4fd573f 100644
--- a/dot_bashrc
+++ b/dot_bashrc
@@ -30,10 +30,19 @@ export CALCHISTFILE="$XDG_CACHE_HOME"/calc_history
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export DOTNET_CLI_HOME="$XDG_DATA_HOME"/dotnet
export GDBHISTFILE="$XDG_CONFIG_HOME"/gdb/.gdb_history
+export ANSIBLE_CONFIG="$HOME/workbench/homelab-iac/ansible/ansible.cfg"
-PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\w\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" ; export PS1
+parse_git_branch() {
+ git branch 2>/dev/null | grep '\*' | sed 's/* /(/' | sed 's/$/)/'
+}
+PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\w\[$(tput setaf 6)\] \$(parse_git_branch)\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\n\\$ \[$(tput sgr0)\]" ; export PS1
[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
# Rust package manager
. "$CARGO_HOME/env"
+
+# kubernetes autocompletion setup
+source <(kubectl completion bash)
+complete -o default -F __start_kubectl k
+#eval "$(task --completion bash)"