1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 03:21:30 +01:00

add bat, bat options, pager options

This commit is contained in:
bretello 2019-12-07 22:28:16 +01:00
parent 7c8ec0ceff
commit 194ab3b920
2 changed files with 11 additions and 2 deletions

View File

@ -37,13 +37,21 @@ antigen apply
# Enable zsh autocorrection
setopt CORRECT_ALL
# Misc environment variables
## Misc environment variables
# https://www.xkcd.com/378/
export EDITOR="vim"
export HISTSIZE=100000
export LANG=en_US.UTF-8
if [[ $(command -v bat) ]]; then
alias cat=bat
export BAT_PAGER="less -RF"
export PAGER=bat
else
# less options
export LESS='-R-j12' # displays 12 lines before search results with / and ?
fi
if [[ $SSH_CLIENT ]]; then
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock

View File

@ -16,7 +16,8 @@ DOTFILES=$PWD
# pv: pipe view, monitor the progress of data through a pipe
# byobu: tmux wrapper
# htop: like top, but bettah
PACKAGES="vim zsh antigen git grc ccze bmon mtr pv tmux byobu htop" # TODO: add bat
# bat: a cat clone on wings
PACKAGES="vim zsh antigen git grc ccze bmon mtr pv tmux byobu htop bat"
function setup_git {
# set up some git stuff