.bashrc improvements
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
# oh-my-bash configuration
|
||||
if [ -d "$HOME/.oh-my-bash" ]; then
|
||||
export OSH="$HOME/.oh-my-bash"
|
||||
|
||||
OSH_THEME="agnoster"
|
||||
OMB_USE_SUDO=true
|
||||
|
||||
completions=(
|
||||
git
|
||||
composer
|
||||
ssh
|
||||
)
|
||||
|
||||
aliases=(
|
||||
general
|
||||
)
|
||||
|
||||
plugins=(
|
||||
git
|
||||
bashmarks
|
||||
)
|
||||
|
||||
source "$OSH/oh-my-bash.sh"
|
||||
fi
|
||||
|
||||
# PATH
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# Color support
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# ls — use eza if available, fallback to ls
|
||||
if command -v eza &>/dev/null; then
|
||||
alias ls='eza -l --color=always --group-directories-first'
|
||||
fi
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
|
||||
# nvim alias
|
||||
if command -v nvim &>/dev/null; then
|
||||
alias vim=nvim
|
||||
fi
|
||||
|
||||
# Run fastfetch on terminal startup
|
||||
if command -v fastfetch &>/dev/null; then
|
||||
fastfetch
|
||||
fi
|
||||
Reference in New Issue
Block a user