diff --git a/.config/.gitignore b/.config/.gitignore index d58336b..c313dc0 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -7,6 +7,7 @@ # Whitelist: !/alacritty/** !/bash/** +!/bat/** !/bspwm/** !/dunst/** !/cargo/** diff --git a/.config/bat/config b/.config/bat/config new file mode 100644 index 0000000..ae39cdc --- /dev/null +++ b/.config/bat/config @@ -0,0 +1,9 @@ +# __ __ +# / / ___ _/ /_ +# / _ \/ _ `/ __/ +# /_.__/\_,_/\__/ +# bat config file. + +--style=default +--color=always +--theme=gruvbox-dark # `bat --list-themes` all available themes diff --git a/.config/pistol/pistol.conf b/.config/pistol/pistol.conf index 86617c3..f2acfcc 100644 --- a/.config/pistol/pistol.conf +++ b/.config/pistol/pistol.conf @@ -7,9 +7,8 @@ # pistol file previewer config inode/directory ls -lah --color=auto --group-directories-first %pistol-filename% -text/plain textplainview %pistol-filename% -text/x-shellscript highlight -O ansi %pistol-filename% +text/* bat --terminal-width=100 --tabs=2 --paging=never %pistol-filename% +application/json bat --terminal-width=100 --tabs=2 --paging=never %pistol-filename% application/csv column -s, -t %pistol-filename% -application/json highlight -O ansi %pistol-filename% application/pdf pdftotext %pistol-filename% - ^(image|video)/* mediainfo %pistol-filename% diff --git a/.local/bin b/.local/bin index 0570f48..93da8d4 160000 --- a/.local/bin +++ b/.local/bin @@ -1 +1 @@ -Subproject commit 0570f480ab30911d277fa1e6647ca3f3e10d624a +Subproject commit 93da8d4a8527bff6ab0ac591c8dd4f8e148f8a67 diff --git a/.profile b/.profile index 5bffc85..5eda3a6 100644 --- a/.profile +++ b/.profile @@ -19,10 +19,7 @@ export XDG_DATA_HOME="$HOME/.local/share" export XDG_SCRIPT_HOME="$HOME/.local/bin" export XDG_SRC_HOME="$HOME/.local/src" -# Add `$XDG_SCRIPT_HOME` and all subdirectories to $PATH -BLACKLIST='/.git' # Add more items to blacklist with \|\|... -export PATH="$PATH:$(du "$XDG_SCRIPT_HOME" | cut -f2 | grep -v "$BLACKLIST" | tr '\n' ':' | sed 's/:*$//')" -export PATH="$JAVA_HOME:$PATH:$HOME/.julia/conda/3/bin" +# Default programs/settings: export TERMINFO='/usr/lib/terminfo' export TERMINAL='/usr/bin/terminal' export OPENER='xdg-open' @@ -41,7 +38,7 @@ export RUST_TOOLCHAIN="$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu #export REFER="$HOME/.referbib" #export PIX="$HOME/.pix/" -# Clean up home +# Clean up home: export LESSHISTFILE="-" export BDOTDIR="$XDG_CONFIG_HOME/bash" export INPUTRC="$BDOTDIR/inputrc" @@ -55,11 +52,16 @@ export GRIPHOME="$XDG_CONFIG_HOME/grip" export GNUPGHOME="$XDG_DATA_HOME/gnupg" export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" -# Global day/night times for theming +# Add `$XDG_SCRIPT_HOME/*`, java, go, julia to $PATH: +BLACKLIST='/.git' # Add more items to blacklist with \|\|... +export PATH="$PATH:$(du "$XDG_SCRIPT_HOME" | cut -f2 | grep -v "$BLACKLIST" | tr '\n' ':' | sed 's/:*$//')" +export PATH="$JAVA_HOME:$PATH:$GOPATH/bin:$HOME/.julia/conda/3/bin" + +# Global day/night times for theming: export TIMEDAY="07:00" export TIMENIGHT="18:00" -# Set less/man colors +# Set less/man colors: export LESS=-R export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}" export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}" @@ -72,7 +74,7 @@ export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}" # This is the list for lf icons: export LF_ICONS="di=:fi=:tw=:ow=ﱮ:ln=:or=ﰸ:ex=:\ *.txt=:*.md=:*.csv=:*.log=📙:*.1=:*.nfo=:*.info=:\ -*.jl=:*.py=:*.c=:*.cpp=:*.jar=:*.java=:\ +*.sh=:*.jl=:*.py=:*.c=:*.cpp=:*.jar=:*.java=:\ *.json=ﬥ:*.toml=煉:*.html=爵:*.xml=:*.css=:*.tex=:*.bib=拾:*.ipynb=:\ *.out=:*.so=:*.gpg=:\ *.db=:*.arrow=:*.parquet=:*.feather=:\