mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Create empty .kdrc on first use
This commit is contained in:
parent
dae0ab5ab7
commit
036b195869
1 changed files with 3 additions and 0 deletions
3
shell/kd
3
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue