Fix Bash configuration
This commit is contained in:
18
bash/.bashrc
18
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'
|
||||
|
||||
@@ -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
0
bash/.bashrc.d/starship.sh
Normal file → Executable file
5
bash/.bashrc.d/zoxide.sh
Executable file
5
bash/.bashrc.d/zoxide.sh
Executable 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user