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:
parent
7c8ec0ceff
commit
194ab3b920
|
@ -37,13 +37,21 @@ antigen apply
|
||||||
# Enable zsh autocorrection
|
# Enable zsh autocorrection
|
||||||
setopt CORRECT_ALL
|
setopt CORRECT_ALL
|
||||||
|
|
||||||
# Misc environment variables
|
## Misc environment variables
|
||||||
|
|
||||||
# https://www.xkcd.com/378/
|
# https://www.xkcd.com/378/
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
|
|
||||||
export HISTSIZE=100000
|
export HISTSIZE=100000
|
||||||
export LANG=en_US.UTF-8
|
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
|
if [[ $SSH_CLIENT ]]; then
|
||||||
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
||||||
|
|
|
@ -16,7 +16,8 @@ DOTFILES=$PWD
|
||||||
# pv: pipe view, monitor the progress of data through a pipe
|
# pv: pipe view, monitor the progress of data through a pipe
|
||||||
# byobu: tmux wrapper
|
# byobu: tmux wrapper
|
||||||
# htop: like top, but bettah
|
# 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 {
|
function setup_git {
|
||||||
# set up some git stuff
|
# set up some git stuff
|
||||||
|
|
Loading…
Reference in New Issue
Block a user