Fix Bash configuration

This commit is contained in:
Fabio Scotto di Santolo
2026-01-03 14:01:55 +01:00
parent f136aaa030
commit 5ab4606691
5 changed files with 21 additions and 10 deletions

View File

@@ -91,18 +91,27 @@ OMB_USE_SUDO=true
# Add wisely, as too many completions slow down shell startup.
completions=(
asdf
brew
docker
docker-compose
gh
git
go
helm
kubectl
makefile
maven
minikube
npm
nvm
oc
pip3
pip
sdkman
ssh
system
tmux
composer
ssh
vagrant
)
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
@@ -118,12 +127,8 @@ aliases=(
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
bashmarks
bash-preexec
cargo
colored-man-pages
git
zoxide
)
# Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*)
@@ -170,6 +175,7 @@ source "$OSH"/oh-my-bash.sh
# export VISUAL="emacs"
alias ls='ls --color=auto --group-directories-first'
alias lsx='ls -AXF'
# Replace grep command tool
alias grep='grep --color=auto'

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
if command -v brew > /dev/null 2>&1; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if command -v /home/linuxbrew/.linuxbrew/bin/brew >/dev/null 2>&1; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi

0
bash/.bashrc.d/starship.sh Normal file → Executable file
View File

5
bash/.bashrc.d/zoxide.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
if command -v /home/linuxbrew/.linuxbrew/bin/zoxide >/dev/null 2>&1; then
eval "$(/home/linuxbrew/.linuxbrew/bin/zoxide init bash)"
fi

View File

@@ -46,8 +46,8 @@ appendpath() {
esac
}
appendpath "/home/linuxbrew/.linuxbrew/bin"
# appendpath "/home/linuxbrew/.linuxbrew/bin"
appendpath "$HOME/.local/bin"
appendpath "$GOBIN"
appendpath "$HOME/.cargo/bin"
# appendpath "$HOME/.cargo/bin"
unset appendpath