Add Bash configuration with Oh My Bash
This commit is contained in:
5
bash/.profile.d/cargo.sh
Executable file
5
bash/.profile.d/cargo.sh
Executable 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
6
bash/.profile.d/golang.sh
Executable 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
5
bash/.profile.d/java.sh
Executable 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
5
bash/.profile.d/mise.sh
Executable 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
5
bash/.profile.d/tmux.sh
Executable 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
|
||||
Reference in New Issue
Block a user