mirror of
https://github.com/ChrisTitusTech/mybash.git
synced 2026-04-11 15:08:28 +00:00
Merge pull request #30 from TNTRedstone/main
remove batcat on fedora due to unavailablity
This commit is contained in:
12
.bashrc
12
.bashrc
@@ -56,7 +56,17 @@ alias spico='sedit'
|
||||
alias nano='edit'
|
||||
alias snano='sedit'
|
||||
alias vim='nvim'
|
||||
alias cat='batcat'
|
||||
|
||||
# Replace batcat with cat on Fedora as batcat is not available as a RPM in any form
|
||||
if command -v lsb_release > /dev/null; then
|
||||
DISTRIBUTION=$(lsb_release -si)
|
||||
|
||||
if [ "$DISTRIBUTION" = "Fedora" ]; then
|
||||
alias cat='bat'
|
||||
else
|
||||
alias cat='batcat'
|
||||
fi
|
||||
fi
|
||||
|
||||
# To have colors for ls and all grep commands such as grep, egrep and zgrep
|
||||
export CLICOLOR=1
|
||||
|
||||
Reference in New Issue
Block a user