Fix Bash configuration
This commit is contained in:
14
bash/.bashrc
14
bash/.bashrc
@@ -182,12 +182,12 @@ alias em='emacsclient -t'
|
||||
alias ssh='ssh.exe'
|
||||
alias ssh-add='ssh-add.exe'
|
||||
|
||||
# Starship prompt
|
||||
if command -v starship > /dev/null 2>&1; then
|
||||
eval "$(starship init bash)"
|
||||
# User specific aliases and functions
|
||||
if [ -d ~/.bashrc.d ]; then
|
||||
for rc in ~/.bashrc.d/*; do
|
||||
if [ -f "$rc" ]; then
|
||||
. "$rc"
|
||||
fi
|
||||
|
||||
# Load Mise en dev
|
||||
if command -v mise > /dev/null 2>&1; then
|
||||
eval "$(mise activate bash)"
|
||||
done
|
||||
fi
|
||||
unset rc
|
||||
|
||||
6
bash/.bashrc.d/starship.sh
Normal file
6
bash/.bashrc.d/starship.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Starship prompt
|
||||
if command -v starship >/dev/null 2>&1; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
@@ -46,11 +46,8 @@ appendpath() {
|
||||
esac
|
||||
}
|
||||
|
||||
appendpath "/home/linuxbrew/.linuxbrew/bin"
|
||||
appendpath "$HOME/.local/bin"
|
||||
appendpath "$GOBIN"
|
||||
appendpath "$HOME/.cargo/bin"
|
||||
unset appendpath
|
||||
|
||||
source "$HOME/.profile.d/homebrew.sh"
|
||||
source "$HOME/.profile.d/mise.sh"
|
||||
source "$HOME/.profile.d/java.sh"
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/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