Add Bash configuration with Oh My Bash

This commit is contained in:
Fabio Scotto di Santolo
2025-08-31 23:56:43 +02:00
parent 7b6ce305a5
commit 10734ba256
7 changed files with 250 additions and 0 deletions

5
bash/.profile.d/cargo.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
if [ -e "$HOME/.cargo" ]; then
source "$HOME/.cargo/env"
fi

6
bash/.profile.d/golang.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
if command -v go > /dev/null 2>&1; then
export GOPATH="$HOME/.local/share/Go"
export GOBIN="$GOPATH/bin"
fi

5
bash/.profile.d/java.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
if command -v java > /dev/null 2>&1; then
export JAVA_HOME="$(dirname $(mise bin-paths | grep -i java))"
fi

5
bash/.profile.d/mise.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
if command -v mise > /dev/null 2>&1; then
eval "$(mise activate zsh)"
fi

5
bash/.profile.d/tmux.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
fi