mirror of
https://github.com/itme-brain/bash.git
synced 2026-05-08 07:20:12 -04:00
updated
This commit is contained in:
parent
f6700648a3
commit
f0fe41e942
3 changed files with 26 additions and 8 deletions
15
aliases
15
aliases
|
|
@ -1,11 +1,15 @@
|
|||
# Navigation
|
||||
alias cd='cd -L'
|
||||
|
||||
# Colors
|
||||
eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
# Search
|
||||
alias grep='grep --color'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
# Tree (uses eza if available)
|
||||
if command -v eza &>/dev/null; then
|
||||
if command -v eza >/dev/null 2>&1; then
|
||||
alias tree='eza --tree --icons=never'
|
||||
fi
|
||||
|
||||
|
|
@ -14,5 +18,8 @@ if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ]; then
|
|||
alias open='xdg-open'
|
||||
fi
|
||||
|
||||
alias vi='/usr/bin/vim'
|
||||
alias vim='/usr/bin/nvim'
|
||||
if command -v nvim >/dev/null 2>&1; then
|
||||
alias vim='nvim'
|
||||
fi
|
||||
|
||||
alias cdg='cd "$(git rev-parse --show-toplevel 2>/dev/null)"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue