From 792756a548d746691d5cafa4f8f9ff23399065e3 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Thu, 21 Sep 2023 22:37:14 +0900 Subject: [PATCH] Update git config --- .zprofile | 6 +++--- README.md | 1 + config/hammerspoon.conf.yml | 12 ++++++++++++ config/macos.conf.yml | 4 ++++ karabiner/karabiner.edn | 3 +-- 5 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 config/hammerspoon.conf.yml diff --git a/.zprofile b/.zprofile index 3be5be2..e914901 100644 --- a/.zprofile +++ b/.zprofile @@ -6,7 +6,7 @@ eval "$(pyenv init --path)" if [[ $(uname -m) == 'arm64' ]]; then # Set PATH, MANPATH, etc., for Homebrew. eval "$(/opt/homebrew/bin/brew shellenv)" - - # Added by OrbStack: command-line tools and integration - source ~/.orbstack/shell/init.zsh 2>/dev/null || : fi + +# Added by OrbStack: command-line tools and integration +source ~/.orbstack/shell/init.zsh 2>/dev/null || : diff --git a/README.md b/README.md index a1c732e..0fdf56e 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Set up by using [dotbot](https://blog.einverne.info/post/2020/08/use-dotbot-dotf make linux # under macOS, install applications by brew make mac + ./install -c config/macos.conf.yaml Log out and log in again, zinit will install all plugins automatically. If you use vi to edit file at first time, the vim-plug will install all vim plugins automatically. diff --git a/config/hammerspoon.conf.yml b/config/hammerspoon.conf.yml new file mode 100644 index 0000000..45482e5 --- /dev/null +++ b/config/hammerspoon.conf.yml @@ -0,0 +1,12 @@ +- defaults: + link: + relink: true + force: true + +- brew: + - hammerspoon + +- link: + ~/.hammerspoon: + if: '[ `uname` = Darwin ]' + path: hammerspoon \ No newline at end of file diff --git a/config/macos.conf.yml b/config/macos.conf.yml index f964c1f..f54dcc8 100644 --- a/config/macos.conf.yml +++ b/config/macos.conf.yml @@ -15,6 +15,9 @@ ~/Library/Preferences/espanso: if: '[ `uname` = Darwin ]' path: espanso + ~/.config/karabiner.edn: + if: '[ `uname` = Darwin ]' + path: karabiner/karabiner.edn ~/.hammerspoon: if: '[ `uname` = Darwin ]' path: hammerspoon @@ -48,6 +51,7 @@ - assh - ripgrep - ffmpeg + - yqrashawn/goku/goku - tap: - homebrew/cask-fonts diff --git a/karabiner/karabiner.edn b/karabiner/karabiner.edn index 61f674a..b6d48ba 100644 --- a/karabiner/karabiner.edn +++ b/karabiner/karabiner.edn @@ -46,11 +46,11 @@ } :applications {:chrome ["^com\\.google\\.Chrome$"] :chrome-canary [ "^com\\.google\\.Chrome\\.canary$"] + :raycast ["^com\\.raycast\\.macos$"] :chromes ["^com\\.google\\.Chrome$" "^com\\.google\\.Chrome\\.canary$"] :ctrlnp ["^md\\.obsidian", "^com\\.jetbrains\\.intellij", "com\\.jetbrains\\.pycharm", - "^com\\.electron\\.lark", "^com\\.tencent\\.xinWeChat", "^com\\.google\\.Chrome"] :finder ["^com\\.apple\\.finder$"] @@ -460,7 +460,6 @@ [:4 :!C4] [:b [:open "/Applications/Obsidian.app"]] [:c [:open "/Applications/Google Chrome.app"]] - [:e [:open "/Applications/Lark.app"]] [:w [:open "/Applications/WeChat.app"]] [:g [:open "/Applications/GoldenDict.app"]] [:v [:open "/Applications/Visual Studio Code.app"]]