bat: use config file instead of multiple env vars

This commit is contained in:
Hoang Nguyen 2021-03-14 07:47:45 +03:00
parent 2a14e9b07d
commit eed4f4c0b9
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
7 changed files with 9 additions and 12 deletions

View File

@ -93,6 +93,7 @@ cp -rfv ./home/.config/alacritty/ ~/.config/alacritty/
cp -rfv ./home/.config/amfora/ ~/.config/amfora/
cp -rfv ./home/.config/anime-downloader/ ~/.config/anime-downloader/
cp -rfv ./home/.config/aria2/ ~/.config/aria2/
cp -rfv ./home/.config/bat/ ~/.config/bat/
cp -rfv ./home/.config/bottom/ ~/.config/bottom/
cp -rfv ./home/.config/cava/ ~/.config/cava/
cp -rfv ./home/.config/cointop/ ~/.config/cointop/

View File

@ -41,14 +41,12 @@ export XINITRC=$XDG_CONFIG_HOME/X11/xinitrc
export XSERVERRC=$XDG_CONFIG_HOME/X11/xserverrc
# env
export PAGER=less
export PAGER="less -R"
export VISUAL=nvim
export EDITOR=nvim
export SVDIR=$HOME/.local/share/service
export _JAVA_AWT_WM_NONREPARENTING=1
export GPG_TTY="$(tty)"
# bat
export BAT_THEME="base16"
# pfetch
export PF_INFO="ascii title kernel wm shell uptime pkgs memory"
# fzf
@ -387,7 +385,6 @@ alias no="grep -viP"
# alias latest_pkg="expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort | tail -n 30"
alias yarn="yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config"
alias tmux="TERM=screen-256color tmux"
alias catc="bat --style plain --color=always"
alias startx="startx $HOME/.config/X11/xinitrc"
alias fehwpp="feh --no-fehbg --bg-fill --randomize ~/Pictures/Wallpapers/*"
# colorizing

5
home/.config/bat/config Normal file
View File

@ -0,0 +1,5 @@
--theme="base16"
--color=always
--italic-text=always
--pager="less -R"
--style="plain"

View File

@ -20,7 +20,6 @@ abbr no 'grep -viP'
# abbr latest_pkg "expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort | tail -n 30"
alias yarn='yarn --use-yarnrc $HOME/.config/yarn/config'
abbr tmux 'TERM=screen-256color command tmux'
alias catc='bat --style plain --color=always'
# colorizing
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'

View File

@ -49,12 +49,10 @@ set -gx XSERVERRC $XDG_CONFIG_HOME/X11/xserverrc
# env
set -gx EDITOR nvim
set -gx VISUAL nvim
set -gx PAGER less
set -gx PAGER "less -R"
set -gx SVDIR $HOME/.local/share/service
set -gx _JAVA_AWT_WM_NONREPARENTING 1
set -gx GPG_TTY (tty)
# bat
set -gx BAT_THEME "base16"
# pfetch
set -gx PF_INFO "ascii title kernel wm shell uptime pkgs memory"
# fzf

View File

@ -37,14 +37,12 @@ export XINITRC=$XDG_CONFIG_HOME/X11/xinitrc
export XSERVERRC=$XDG_CONFIG_HOME/X11/xserverrc
# env
export PAGER=less
export PAGER="less -R"
export VISUAL=nvim
export EDITOR=nvim
export SVDIR=$XDG_DATA_HOME/service
export _JAVA_AWT_WM_NONREPARENTING=1
export GPG_TTY="$(tty)"
# bat
export BAT_THEME="base16"
# pfetch
export PF_INFO="ascii title kernel wm shell uptime pkgs memory"
# fzf

View File

@ -14,7 +14,6 @@ alias no="grep -viP"
# alias latest_pkg="expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort | tail -n 30"
alias yarn="yarn --use-yarnrc $HOME/.config/yarn/config"
alias tmux="TERM=screen-256color tmux"
alias catc="bat --style plain --color=always"
# colorizing
alias grep="grep --color=auto"
alias fgrep="fgrep --color=auto"