-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
34 lines (26 loc) · 793 Bytes
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Not the real .bashrc file, but we're naming it as such because it enables syntax highlighting with compatible tools
alias ls='ls --color=always --group-directories-first -lAh'
alias lsd='lsd --color=always --group-directories-first -lAv --icon-theme unicode --date +"%Y-%m-%d %H:%M:%S"'
# These commands are replacements for others, so alias only if installed.
if which lsd &> /dev/null;
then
alias ls='lsd'
fi
if which zoxide &> /dev/null;
then
alias cd='z'
# From https://github.com/ajeetdsouza/zoxide
eval "$(zoxide init bash)"
fi
if which duf &> /dev/null;
then
alias df='duf'
fi
alias dd='dd status=progress bs=4M'
alias less='less -r'
alias acp='rsync -ah --info=progress2'
alias sudo='sudo '
alias vim='nvim'
alias vimdiff='nvim -d'
export EDITOR=nvim
alias bat='batcat'