Also made the batcat alias conditional to solve headaches I've been having for 5 years
This commit is contained in:
parent
ecece1433f
commit
bbe0b30222
9
.bashrc
9
.bashrc
@ -4,8 +4,13 @@
|
||||
alias sudo='sudo '
|
||||
|
||||
#what cd should do by default
|
||||
alias cd='cd_func'
|
||||
alias bat='batcat '
|
||||
if command -v batcat &> /dev/null
|
||||
then
|
||||
alias cd='cd_func'
|
||||
alias bat='batcat '
|
||||
fi
|
||||
|
||||
|
||||
cd_func ()
|
||||
{
|
||||
builtin cd "$@" && ls --color=auto --group-directories-first --format=single-column
|
||||
|
Loading…
Reference in New Issue
Block a user