Fix Bash configuration

This commit is contained in:
Fabio Scotto di Santolo
2026-01-03 14:01:55 +01:00
parent a4b8af382a
commit 596f28512d
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. # Add wisely, as too many completions slow down shell startup.
completions=( completions=(
asdf asdf
brew
docker docker
docker-compose docker-compose
gh gh
git git
go go
helm
kubectl
makefile makefile
maven
minikube
npm npm
nvm
oc
pip3 pip3
pip
sdkman
ssh
system system
tmux tmux
composer vagrant
ssh
) )
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*) # 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) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
bashmarks
bash-preexec bash-preexec
cargo
colored-man-pages colored-man-pages
git
zoxide
) )
# Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*) # 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" # export VISUAL="emacs"
alias ls='ls --color=auto --group-directories-first' alias ls='ls --color=auto --group-directories-first'
alias lsx='ls -AXF'
# Replace grep command tool # Replace grep command tool
alias grep='grep --color=auto' alias grep='grep --color=auto'

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if command -v brew > /dev/null 2>&1; then if command -v /home/linuxbrew/.linuxbrew/bin/brew >/dev/null 2>&1; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi 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 esac
} }
appendpath "/home/linuxbrew/.linuxbrew/bin" # appendpath "/home/linuxbrew/.linuxbrew/bin"
appendpath "$HOME/.local/bin" appendpath "$HOME/.local/bin"
appendpath "$GOBIN" appendpath "$GOBIN"
appendpath "$HOME/.cargo/bin" # appendpath "$HOME/.cargo/bin"
unset appendpath unset appendpath