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