mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
logseq: add my config
This commit is contained in:
parent
1388726413
commit
65bd401e49
3 changed files with 31 additions and 8 deletions
22
bootstrap
22
bootstrap
|
|
@ -1,6 +1,18 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
create_links_in_dir_recursively() {
|
||||||
|
local base_dir="$PWD/$1"
|
||||||
|
local target_dir="$2"
|
||||||
|
|
||||||
|
for dir in $(find "$base_dir/" -type d); do
|
||||||
|
mkdir -p "$HOME/$target_dir${dir#$base_dir}"
|
||||||
|
for file in $(find "$dir" -maxdepth 1 -type f); do
|
||||||
|
ln -sf "$file" "$HOME/$target_dir${file#$base_dir}"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
ln -sf "$PWD/zshrc" "$HOME/.zshrc"
|
ln -sf "$PWD/zshrc" "$HOME/.zshrc"
|
||||||
ln -sf "$PWD/gitconfig" "$HOME/.gitconfig"
|
ln -sf "$PWD/gitconfig" "$HOME/.gitconfig"
|
||||||
ln -sf "$PWD/tmux.conf" "$HOME/.tmux.conf"
|
ln -sf "$PWD/tmux.conf" "$HOME/.tmux.conf"
|
||||||
|
|
@ -10,15 +22,9 @@ for file in $(find "$PWD/bin" -type f); do
|
||||||
ln -sf "$file" "$HOME/bin"
|
ln -sf "$file" "$HOME/bin"
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p "$HOME/.config/"
|
create_links_in_dir_recursively "config" ".config"
|
||||||
ln -sf "$PWD/config/alacritty.yml" "$HOME/.config/alacritty.yml"
|
ln -sf "$PWD/config/alacritty.yml" "$HOME/.config/alacritty.yml"
|
||||||
ln -sf "$PWD/config/electron-flags.conf" "$HOME/.config/electron-flags.conf"
|
ln -sf "$PWD/config/electron-flags.conf" "$HOME/.config/electron-flags.conf"
|
||||||
ln -sf "$PWD/config/starship.toml" "$HOME/.config/starship.toml"
|
ln -sf "$PWD/config/starship.toml" "$HOME/.config/starship.toml"
|
||||||
|
|
||||||
for dir in $(find "$PWD/config/" -type d); do
|
create_links_in_dir_recursively "logseq" ".logseq"
|
||||||
mkdir -p "$HOME/.config${dir#$PWD/config}"
|
|
||||||
|
|
||||||
for file in $(find "$dir" -maxdepth 1 -type f); do
|
|
||||||
ln -sf "$file" "$HOME/.config${file#$PWD/config}"
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
|
||||||
15
logseq/config/config.edn
Normal file
15
logseq/config/config.edn
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
;; This global config file applies a configuration to all graphs. Any config
|
||||||
|
;; keys from a graph's logseq/config.edn can used here. A graph's
|
||||||
|
;; logseq/config.edn overrides config keys in this file except for maps which
|
||||||
|
;; are merged. As an example of merging, the following global and local configs:
|
||||||
|
;; {:shortcuts {:ui/toggle-theme "t z"}}
|
||||||
|
;; {:shortcuts {:ui/toggle-brackets "t b"}}
|
||||||
|
;;
|
||||||
|
;; would result in the final config:
|
||||||
|
;; {:shortcuts {:ui/toggle-theme "t z"
|
||||||
|
;; :ui/toggle-brackets "t b"}}
|
||||||
|
|
||||||
|
{:shortcuts {:auto-complete/complete ["enter" "tab"]
|
||||||
|
:whiteboard/bring-forward ["close-square-bracket" "ctrl+o"]
|
||||||
|
:editor/backward-kill-word ["ctrl+w"]
|
||||||
|
:window/close []}}
|
||||||
2
logseq/config/plugins.edn
Normal file
2
logseq/config/plugins.edn
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
{:logseq-bullet-threading {:version "v1.1.4", :repo "pengx17/logseq-plugin-bullet-threading", :effect false, :theme false}
|
||||||
|
:logseq-vim-shortcuts {:version "v0.1.22", :repo "vipzhicheng/logseq-plugin-vim-shortcuts", :effect true, :theme false}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue