Skip to content

Commit

Permalink
feat(zsh): when bat is available, alias to cat
Browse files Browse the repository at this point in the history
- When `bat` is available, alias it to `cat` command

More details:
- https://github.com/sharkdp/bat
  • Loading branch information
d2s committed Sep 10, 2019
1 parent d3e88d8 commit 857db4d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ if [ "$(command -v rustup)" ]; then
fi


# -----------------------------------------------------------
# bat
#
# "A cat(1) clone with syntax highlighting and Git integration. "
# - https://github.com/sharkdp/bat
# -----------------------------------------------------------

# If `bat` is available
if [ "$(command -v bat)" ]; then
alias cat="bat"
fi



# -----------------------------------------------------------
# PATH management helpers
Expand Down

0 comments on commit 857db4d

Please sign in to comment.