zk: Fix note dir location and add cd alias
The note dir is in fact our `$WIKIROOT` so we set it to that by default. Also took the chance and added a small 'cd' command into the note dir, using `ncd`
This commit is contained in:
parent
65bb7aa034
commit
395bf80abe
3 changed files with 4 additions and 1 deletions
|
@ -78,6 +78,7 @@ social = "~"
|
|||
"writing/sioyek/config" = "~/.config"
|
||||
"writing/zathura/config" = "~/.config"
|
||||
"writing/zk/config" = "~/.config"
|
||||
"writing/zk/config/sh/alias.d/zk.sh" = { target = "~/.config/sh/alias.d/zk.sh", type = "symbolic" }
|
||||
"writing/pandoc/local" = "~/.local"
|
||||
writing = "~"
|
||||
|
||||
|
|
|
@ -15,3 +15,5 @@ n() {
|
|||
if command -v nvim >/dev/null 2>&1; then
|
||||
alias ni='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit $WIKIROOT/index.md"'
|
||||
fi
|
||||
|
||||
alias ncd='pushd $WIKIROOT'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
#
|
||||
|
||||
export ZK_NOTEBOOK_DIR="${WIKIROOT:-~/documents/notes/}/pinky"
|
||||
export ZK_NOTEBOOK_DIR="${WIKIROOT:-~/documents/notes/}"
|
||||
|
|
Loading…
Reference in a new issue