Clean up bash init a bit

This commit is contained in:
Daniel Lundin 2017-05-04 22:55:33 +02:00
parent 6e57d76838
commit b115eb98e3
3 changed files with 25 additions and 10 deletions

View file

@ -1,6 +1,20 @@
function _src {
[ -f $1 ] && source $1
}
# Bash
_src /etc/bash_completion
# Bazel
[ -f /usr/local/lib/bazel/bin/bazel-complete.bash ] && source /usr/local/lib/bazel/bin/bazel-complete.bash
_src /usr/local/lib/bazel/bin/bazel-complete.bash
# Rust
[ -f /usr/local/etc/bash_completion.d/cargo ] && source /usr/local/etc/bash_completion.d/cargo
_src /usr/local/etc/bash_completion.d/cargo
# fzf
_src /usr/share/fzf/completion.bash
_src /usr/share/fzf/key-bindings.bash
# Kubernetes
source <(kubectl completion bash)