From 5ab46066910e7b583265874beb3182df1a34d5dd Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sat, 3 Jan 2026 14:01:55 +0100 Subject: [PATCH] Fix Bash configuration --- bash/.bashrc | 18 ++++++++++++------ bash/.bashrc.d/homebrew.sh | 4 ++-- bash/.bashrc.d/starship.sh | 0 bash/.bashrc.d/zoxide.sh | 5 +++++ bash/.profile | 4 ++-- 5 files changed, 21 insertions(+), 10 deletions(-) mode change 100644 => 100755 bash/.bashrc.d/starship.sh create mode 100755 bash/.bashrc.d/zoxide.sh diff --git a/bash/.bashrc b/bash/.bashrc index 4588499..81179c8 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -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' diff --git a/bash/.bashrc.d/homebrew.sh b/bash/.bashrc.d/homebrew.sh index c615732..d6794e2 100755 --- a/bash/.bashrc.d/homebrew.sh +++ b/bash/.bashrc.d/homebrew.sh @@ -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 diff --git a/bash/.bashrc.d/starship.sh b/bash/.bashrc.d/starship.sh old mode 100644 new mode 100755 diff --git a/bash/.bashrc.d/zoxide.sh b/bash/.bashrc.d/zoxide.sh new file mode 100755 index 0000000..110cb32 --- /dev/null +++ b/bash/.bashrc.d/zoxide.sh @@ -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 diff --git a/bash/.profile b/bash/.profile index 3bef0e7..49b50bf 100644 --- a/bash/.profile +++ b/bash/.profile @@ -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