edit file

pull/3/head
kevin zhuang 4 years ago
parent effe266a66
commit d96a25ffb1

@ -12,6 +12,7 @@
DOTBARE_DIR="${DOTBARE_DIR:-$HOME/.cfg/}"
DOTBARE_TREE="${DOTBARE_TREE:-$HOME}"
EDITOR="${EDITOR:-vim}"
if [[ -z "${DOTBARE_KEY}" ]]; then
DOTBARE_KEY="
--bind=alt-a:toggle-all

@ -56,5 +56,6 @@ elif [[ -n "${modified}" ]]; then
echo "modified"
else
selected_files=$(get_git_file "Select tracked files to edit")
echo "${selected_files}"
[[ -z "${selected_files}" ]] && exit 0
command "${EDITOR}" ${selected_files}
fi

Loading…
Cancel
Save