Add bat, ripgrep, fzf configs and dotfiles update to Fedora sysup
- Add bat config: ansi theme, line numbers, header, italic text - Add ripgrep config: smart-case, hidden files, exclude .git - Add fzf env vars: fd backend, reverse layout, border - Add RIPGREP_CONFIG_PATH export - Fedora sysup: add chezmoi update as parallel task
This commit is contained in:
parent
37e50ab687
commit
44d06ec382
3 changed files with 18 additions and 1 deletions
4
dot_config/bat/config
Normal file
4
dot_config/bat/config
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
--theme="ansi"
|
||||
--style="numbers,changes,header"
|
||||
--italic-text=always
|
||||
--map-syntax "*.conf:INI"
|
||||
3
dot_config/ripgrep/config
Normal file
3
dot_config/ripgrep/config
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
--smart-case
|
||||
--hidden
|
||||
--glob=!.git
|
||||
|
|
@ -21,7 +21,7 @@ source $ZSH/oh-my-zsh.sh
|
|||
sysup() {
|
||||
command sudo -v || return 1
|
||||
setopt LOCAL_OPTIONS NO_NOTIFY NO_MONITOR
|
||||
local -a names=(dnf flatpak rustup deno npm)
|
||||
local -a names=(dnf flatpak rustup deno npm dotfiles)
|
||||
local -a logs pids
|
||||
for n in $names; do logs+=($(mktemp)); done
|
||||
local start=$SECONDS
|
||||
|
|
@ -35,6 +35,8 @@ sysup() {
|
|||
pids+=($!)
|
||||
command sudo npm update -g --fund=false --loglevel=error &>"${logs[5]}" &
|
||||
pids+=($!)
|
||||
chezmoi update --no-tty &>"${logs[6]}" &
|
||||
pids+=($!)
|
||||
local lines=$(( ${#names} + 2 ))
|
||||
local spin='⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏' i=0 drawn=0
|
||||
tput civis 2>/dev/null
|
||||
|
|
@ -149,5 +151,13 @@ source ~/.cache/zsh/starship.zsh
|
|||
# Bitwarden CLI
|
||||
alias bwu='export BW_SESSION=$(bw unlock --raw)'
|
||||
|
||||
# fzf: use fd as backend, follow symlinks, respect .gitignore
|
||||
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
|
||||
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
|
||||
# ripgrep config
|
||||
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"
|
||||
|
||||
# CHROME_BIN (resolved on demand, not every shell start)
|
||||
export CHROME_BIN="${CHROME_BIN:-$(command -v chromium-browser 2>/dev/null || command -v chromium 2>/dev/null || command -v google-chrome 2>/dev/null)}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue