Create empty .kdrc on first use

This commit is contained in:
Loic Nageleisen 2021-11-27 00:34:42 +01:00
parent dae0ab5ab7
commit 036b195869
Signed by: lloeki
GPG key ID: 971B4D9F125CD31E

View file

@ -8,6 +8,9 @@
# worKDir or quicKDir
function kd() {
local conf="$HOME/.kdrc"
if [[ ! -f "${conf}" ]]; then
touch "${conf}"
fi
if [[ $# -eq 0 ]]; then
local candidate="$PWD"
while [[ -n "$candidate" ]]; do