Clean up bash init a bit
This commit is contained in:
parent
6e57d76838
commit
b115eb98e3
3 changed files with 25 additions and 10 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue