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.
|
# 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'
|
||||||
|
|||||||
@@ -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
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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user