blob: a2b93f0a0a7ee3990fbf95ace8b735c56725c1dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/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/' | column -t -s $'\t'
|