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 '
|
alias sudo='sudo '
|
||||||
|
|
||||||
#what cd should do by default
|
#what cd should do by default
|
||||||
alias cd='cd_func'
|
if command -v batcat &> /dev/null
|
||||||
alias bat='batcat '
|
then
|
||||||
|
alias cd='cd_func'
|
||||||
|
alias bat='batcat '
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
cd_func ()
|
cd_func ()
|
||||||
{
|
{
|
||||||
builtin cd "$@" && ls --color=auto --group-directories-first --format=single-column
|
builtin cd "$@" && ls --color=auto --group-directories-first --format=single-column
|
||||||
|
Loading…
Reference in New Issue
Block a user