#!/bin/bash # read global config if [[ -f "/etc/clerk_fzf.conf" ]]; then source /etc/clerk_fzf.conf fi # read user config if [[ -f "$HOME/.config/clerk/clerk_fzf.conf" ]]; then source $HOME/.config/clerk/clerk_fzf.conf fi grep -A14 '^## Key Bindings' "${tmux_config}" | awk -F '-n ' '{ print $2 }' | \ sed 's/clerk_fzf --//g; s/run-shell//g; s/findw//g; s/\x27//g; s/--quiet//g; s/mpc //g; s/clerk_update --create-caches/create caches/; s/_/ /g; s/kill-session -t music/ kill session/g; s/ /\t/g' | \ sed 's/clerk_update/update views/'