From 036b195869b91a2262a3c3fc0ee03da66a8d7cbb Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sat, 27 Nov 2021 00:34:42 +0100 Subject: [PATCH] Create empty .kdrc on first use --- shell/kd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/kd b/shell/kd index 3358470..f374172 100755 --- a/shell/kd +++ b/shell/kd @@ -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