mirror of
https://github.com/captn3m0/Scripts.git
synced 2024-09-28 16:22:49 +00:00
26 lines
523 B
Bash
26 lines
523 B
Bash
#!/bin/bash
|
|
|
|
#
|
|
# Attribution
|
|
# Written by cthulahoops.
|
|
# The idea is to provide a single interface for quickly editing various configurations.
|
|
#
|
|
|
|
declare -A configs
|
|
configs=(
|
|
['khal']=".config/khal/config"
|
|
['vdirsyncer']=".config/vdirsyncer/config"
|
|
['nvim']=".config/nvim/init.vim"
|
|
['bash']=".bashrc"
|
|
['tmux']=".tmux.conf"
|
|
['unison']=".unison/common"
|
|
['ec']='bin/ec'
|
|
)
|
|
|
|
case "$1" in
|
|
show)
|
|
echo "$HOME/${configs[$2]}"
|
|
;;
|
|
*)
|
|
exec $EDITOR "$HOME/${configs[$1]}"
|
|
esac |