From f6d503c677defa01443217ef4092141f8ff73c8c Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Mon, 16 May 2022 21:02:11 +0200 Subject: [PATCH] Templates for ~/.bashrc.d --- rc.local/dotnet.sh | 2 ++ rc.local/gitprompt.sh | 7 +++++++ rc.local/golang.sh.bak | 2 ++ rc.local/linuxbrew.sh | 7 +++++++ rc.local/oracle-oci.sh | 4 ++++ rc.local/sdkman.sh | 2 ++ rc.local/wsl.sh | 3 +++ 7 files changed, 27 insertions(+) create mode 100644 rc.local/dotnet.sh create mode 100644 rc.local/gitprompt.sh create mode 100644 rc.local/golang.sh.bak create mode 100644 rc.local/linuxbrew.sh create mode 100644 rc.local/oracle-oci.sh create mode 100644 rc.local/sdkman.sh create mode 100644 rc.local/wsl.sh diff --git a/rc.local/dotnet.sh b/rc.local/dotnet.sh new file mode 100644 index 0000000..0b0562f --- /dev/null +++ b/rc.local/dotnet.sh @@ -0,0 +1,2 @@ +export DOTNET_CLI_TELEMETRY_OPTOUT=1 + diff --git a/rc.local/gitprompt.sh b/rc.local/gitprompt.sh new file mode 100644 index 0000000..79099a5 --- /dev/null +++ b/rc.local/gitprompt.sh @@ -0,0 +1,7 @@ +GIT_PROMPT_INIT="$HOME/.bash-git-prompt/gitprompt.sh" + +if [ -e "$GIT_PROMPT_INIT" ]; then + GIT_PROMPT_ONLY_IN_REPO=1 + source "$GIT_PROMPT_INIT" +fi + diff --git a/rc.local/golang.sh.bak b/rc.local/golang.sh.bak new file mode 100644 index 0000000..c382855 --- /dev/null +++ b/rc.local/golang.sh.bak @@ -0,0 +1,2 @@ +prepend_path "$HOME/go/bin" +export GOROOT=$(go env GOROOT) diff --git a/rc.local/linuxbrew.sh b/rc.local/linuxbrew.sh new file mode 100644 index 0000000..e4a0f44 --- /dev/null +++ b/rc.local/linuxbrew.sh @@ -0,0 +1,7 @@ +BREW_HOME=/home/linuxbrew +BREW="$BREW_HOME/.linuxbrew/bin/brew" + +if [[ -e $BREW ]]; then + eval "$($BREW shellenv)" +fi + diff --git a/rc.local/oracle-oci.sh b/rc.local/oracle-oci.sh new file mode 100644 index 0000000..2586e0f --- /dev/null +++ b/rc.local/oracle-oci.sh @@ -0,0 +1,4 @@ +# Oracle OCI bash autocomplete + +OCI_AUTOCOMPLETE="$HOME/lib/oracle-cli/lib/python3.10/site-packages/oci_cli/bin/oci_autocomplete.sh" +source_try "$OCI_AUTOCOMPLETE" diff --git a/rc.local/sdkman.sh b/rc.local/sdkman.sh new file mode 100644 index 0000000..218a7d5 --- /dev/null +++ b/rc.local/sdkman.sh @@ -0,0 +1,2 @@ +export SDKMAN_DIR="/home/lachtan/.sdkman" +source_try "$SDKMAN_DIR/bin/sdkman-init.sh" diff --git a/rc.local/wsl.sh b/rc.local/wsl.sh new file mode 100644 index 0000000..cc75082 --- /dev/null +++ b/rc.local/wsl.sh @@ -0,0 +1,3 @@ +prepend_path "$HOME/.local/bin" +append_path "$HOME/.arkade/bin" +append_path "$HOME/.cargo/bin"