Join rc and rc.local folders

This commit is contained in:
lachtan
2025-01-03 16:58:29 +00:00
parent 87cc0c95ac
commit 6854c3bfa8
12 changed files with 1 additions and 5 deletions

17
rc.available/03-bash.sh Normal file
View File

@@ -0,0 +1,17 @@
function auto_expand() {
# https://forum.root.cz/index.php?topic=16821.0
# Override some functionality from bash-completion
_expand() { :; }
__expand_tilde_by_ref() { :; }
_filedir_xspec () { :; }
shopt -s direxpand
#shopt -u complete_fullquote
#shopt -s direxpand
#shopt -u progcomp
#shopt -s cdable_vars
}
auto_expand()

19
rc.available/go-env.sh Normal file
View File

@@ -0,0 +1,19 @@
# Use user defined Go version
# GOPATH and GOROOT must be already set in $HOME/.bashrc
_GO_BIN_DIR="$HOME/go/bin"
if [[ -d "$_GO_BIN_DIR"]]; then
prepend_path_try "$_GO_BIN_DIR"
if can_run go; then
export GOROOT=$(go env GOROOT)
fi
fi
if [[ ! -z "$GOPATH" ]]; then
prepend_path "$GOPATH/bin"
fi
if [[ ! -z "$GOROOT" ]]; then
prepend_path "$GOROOT/bin"
fi