From 1cceaa6b2e7a58265dc90c1055eba3b434690c1c Mon Sep 17 00:00:00 2001 From: andooown Date: Thu, 3 Apr 2025 05:56:01 +0900 Subject: [PATCH 01/12] Remove unneccesary taps --- Brewfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Brewfile b/Brewfile index 415d91a..facb24e 100644 --- a/Brewfile +++ b/Brewfile @@ -1,7 +1,3 @@ -tap "homebrew/bundle" -tap "homebrew/cask" -tap "homebrew/core" -tap "homebrew/services" tap "robotsandpencils/made" brew "ag" From d667fc747b4e2a91cfe08616f3d96d8e3d153c01 Mon Sep 17 00:00:00 2001 From: andooown Date: Thu, 3 Apr 2025 05:57:26 +0900 Subject: [PATCH 02/12] Remove imagemagick --- Brewfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Brewfile b/Brewfile index facb24e..58c260f 100644 --- a/Brewfile +++ b/Brewfile @@ -12,7 +12,6 @@ brew "ghq" brew "git" brew "git-lfs" brew "hugo" -brew "imagemagick" brew "jq" brew "mas" brew "mint" From 671402520ecd9546a4ce766d82d2f615ab40f937 Mon Sep 17 00:00:00 2001 From: andooown Date: Thu, 3 Apr 2025 06:03:27 +0900 Subject: [PATCH 03/12] Remove unused cask --- Brewfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Brewfile b/Brewfile index 58c260f..abdd5f3 100644 --- a/Brewfile +++ b/Brewfile @@ -25,26 +25,20 @@ brew "zsh" brew "zsh-completions" cask "1password" -cask "alacritty" cask "alfred" cask "bartender" cask "bettertouchtool" cask "discord" cask "docker" -cask "dropbox" cask "google-chrome" cask "google-cloud-sdk" -cask "google-drive" cask "iterm2" -cask "jasper" cask "jetbrains-toolbox" cask "karabiner-elements" cask "slack" cask "spotify" -cask "tweeten" cask "visual-studio-code" -mas "Amphetamine", id: 937984704 mas "iStat Menus", id: 1319778037 mas "Keynote", id: 409183694 mas "Numbers", id: 409203825 From b619c8f9c6bca62a2a49c0694b3a4014e77cd206 Mon Sep 17 00:00:00 2001 From: andooown Date: Thu, 3 Apr 2025 06:52:31 +0900 Subject: [PATCH 04/12] Don't install iStat Menus from App Store --- Brewfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Brewfile b/Brewfile index abdd5f3..2b69a96 100644 --- a/Brewfile +++ b/Brewfile @@ -39,7 +39,6 @@ cask "slack" cask "spotify" cask "visual-studio-code" -mas "iStat Menus", id: 1319778037 mas "Keynote", id: 409183694 mas "Numbers", id: 409203825 mas "Pages", id: 409201541 From 9f278622a5c8b7b2b877f0600f42976e4eabb7a0 Mon Sep 17 00:00:00 2001 From: andooown Date: Fri, 4 Apr 2025 19:46:27 +0900 Subject: [PATCH 05/12] Add input switch scripts and update Brewfile --- .../raycast/scripts/switch-input-to-english.sh | 13 +++++++++++++ .../raycast/scripts/switch-input-to-japanese.sh | 13 +++++++++++++ Brewfile | 1 + 3 files changed, 27 insertions(+) create mode 100755 .tool_config/raycast/scripts/switch-input-to-english.sh create mode 100755 .tool_config/raycast/scripts/switch-input-to-japanese.sh diff --git a/.tool_config/raycast/scripts/switch-input-to-english.sh b/.tool_config/raycast/scripts/switch-input-to-english.sh new file mode 100755 index 0000000..064dbea --- /dev/null +++ b/.tool_config/raycast/scripts/switch-input-to-english.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Switch Input to English +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +keyboardswitcher select ABC +echo "English" + diff --git a/.tool_config/raycast/scripts/switch-input-to-japanese.sh b/.tool_config/raycast/scripts/switch-input-to-japanese.sh new file mode 100755 index 0000000..7b8e99e --- /dev/null +++ b/.tool_config/raycast/scripts/switch-input-to-japanese.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Switch Input to Japanese +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +keyboardswitcher select Hiragana +echo "Japanese" + diff --git a/Brewfile b/Brewfile index 2b69a96..391fd11 100644 --- a/Brewfile +++ b/Brewfile @@ -13,6 +13,7 @@ brew "git" brew "git-lfs" brew "hugo" brew "jq" +brew "lutzifer/homebrew-tap/keyboardSwitcher" brew "mas" brew "mint" brew "peco" From b4c18f0744b749da923750fbe8f97d3a9acf6742 Mon Sep 17 00:00:00 2001 From: andooown Date: Fri, 4 Apr 2025 21:36:19 +0900 Subject: [PATCH 06/12] Remove Alfred, BetterTouchTool, and Karabiner-elements --- Brewfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Brewfile b/Brewfile index 391fd11..69422f3 100644 --- a/Brewfile +++ b/Brewfile @@ -26,16 +26,14 @@ brew "zsh" brew "zsh-completions" cask "1password" -cask "alfred" cask "bartender" -cask "bettertouchtool" cask "discord" cask "docker" cask "google-chrome" cask "google-cloud-sdk" cask "iterm2" cask "jetbrains-toolbox" -cask "karabiner-elements" +cask "raycast" cask "slack" cask "spotify" cask "visual-studio-code" From 2772a86f6e20e972c8b01138b6a0a1baad118b61 Mon Sep 17 00:00:00 2001 From: andooown Date: Fri, 4 Apr 2025 21:39:36 +0900 Subject: [PATCH 07/12] Fix tap path for keyboardSwitcher in Brewfile --- Brewfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Brewfile b/Brewfile index 69422f3..8115389 100644 --- a/Brewfile +++ b/Brewfile @@ -13,7 +13,7 @@ brew "git" brew "git-lfs" brew "hugo" brew "jq" -brew "lutzifer/homebrew-tap/keyboardSwitcher" +brew "lutzifer/tap/keyboardSwitcher" brew "mas" brew "mint" brew "peco" From 0bf2a90de5d019943f68a336b382211b68a160fb Mon Sep 17 00:00:00 2001 From: andooown Date: Sat, 5 Apr 2025 02:30:57 +0900 Subject: [PATCH 08/12] Update asdf path configuration in .zshrc --- .zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index dfaf6ca..c1591c3 100644 --- a/.zshrc +++ b/.zshrc @@ -51,8 +51,7 @@ if has "direnv"; then fi if has "asdf"; then - ASDF_DIR=$(brew --prefix asdf) - source $ASDF_DIR/asdf.sh + export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH" fi if has "anyenv" || [ -e $HOME/.anyenv ]; then From 0299e698f693e8b414a9505f715e596909cb9b91 Mon Sep 17 00:00:00 2001 From: andooown Date: Sat, 5 Apr 2025 16:20:16 +0900 Subject: [PATCH 09/12] feat(zshrc): add function to detect VSCode terminal and prevent Prezto and tmux initialization in VSCode environment --- .zshrc | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.zshrc b/.zshrc index c1591c3..f808279 100644 --- a/.zshrc +++ b/.zshrc @@ -8,11 +8,26 @@ export LANG=ja_JP.UTF-8 export LC_CTYPE=ja_JP.UTF-8 +has() { + type "$1" > /dev/null 2>&1 +} + +is_osx() { + [[ $(uname) == 'Darwin' ]] +} +is_linux() { + [[ $(uname) == 'Linux' ]] +} + +is_in_vscode() { + [[ $TERM_PROGRAM ]] +} + # Homebrew eval "$(/opt/homebrew/bin/brew shellenv)" # Source Prezto. -if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then +if ! is_in_vscode && [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi @@ -26,19 +41,8 @@ done autoload -Uz compinit compinit -has() { - type "$1" > /dev/null 2>&1 -} - -is_osx() { - [[ $(uname) == 'Darwin' ]] -} -is_linux() { - [[ $(uname) == 'Linux' ]] -} - # Auto attach or launch tmux -if [[ ! -n $TMUX && $- == *l* ]]; then +if ! is_in_vscode && [[ ! -n $TMUX && $- == *l* ]]; then if tmux list-session > /dev/null 2>&1; then tmux attach-session else From b461862268a97deeebb5924e1feaa82cc058a352 Mon Sep 17 00:00:00 2001 From: andooown Date: Sat, 5 Apr 2025 16:20:24 +0900 Subject: [PATCH 10/12] chore(zshrc): add emacs keybindings to improve command line editing experience --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index f808279..e5182af 100644 --- a/.zshrc +++ b/.zshrc @@ -96,3 +96,5 @@ if [ -e $HOME/.zsh_local_env ]; then source $HOME/.zsh_local_env fi +bindkey -e + From 75443f25cf2a501263e3068eeef86404d409f1a6 Mon Sep 17 00:00:00 2001 From: andooown Date: Thu, 10 Apr 2025 09:10:35 +0900 Subject: [PATCH 11/12] Fix is_in_vscode condition in .zshrc --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index e5182af..b1724a3 100644 --- a/.zshrc +++ b/.zshrc @@ -20,7 +20,7 @@ is_linux() { } is_in_vscode() { - [[ $TERM_PROGRAM ]] + [[ $TERM_PROGRAM == 'vscode' ]] } # Homebrew From 2b203fd76fcb3680830c41fa9580aeb515d85741 Mon Sep 17 00:00:00 2001 From: andooown Date: Wed, 4 Jun 2025 12:11:08 +0900 Subject: [PATCH 12/12] Add BetterTouchTool preset and cask to Brewfile --- .../better-touch-tool/andooown.bttpreset | 188 ++++++++++++++++++ Brewfile | 1 + 2 files changed, 189 insertions(+) create mode 100644 .tool_config/better-touch-tool/andooown.bttpreset diff --git a/.tool_config/better-touch-tool/andooown.bttpreset b/.tool_config/better-touch-tool/andooown.bttpreset new file mode 100644 index 0000000..8c1586f --- /dev/null +++ b/.tool_config/better-touch-tool/andooown.bttpreset @@ -0,0 +1,188 @@ +{ + "BTTPresetCreatorNotes" : "", + "BTTPresetInfoURL" : "", + "BTTPresetName" : "andooown", + "BTTPresetColor" : "217.996015, 50.790900, 220.830000, 255.000000", + "BTTPresetUUID" : "72DC843D-CE37-4EB5-A9CE-2FC2FB3CAC4A", + "BTTPresetContent" : [ + { + "BTTAppBundleIdentifier" : "com.apple.finder", + "BTTAppName" : "Finder", + "BTTAppAutoInvertIcon" : 1, + "BTTTriggers" : [ + + ] + }, + { + "BTTAppBundleIdentifier" : "BT.L", + "BTTAppName" : "Recently Used", + "BTTAppAutoInvertIcon" : 1, + "BTTTriggers" : [ + + ] + }, + { + "BTTAppBundleIdentifier" : "BT.G", + "BTTAppName" : "Global", + "BTTAppAutoInvertIcon" : 1, + "BTTTriggers" : [ + { + "BTTActionCategory" : 0, + "BTTLastUpdatedAt" : 1749005732.3440418, + "BTTTriggerClass" : "BTTTriggerTypeTouchBar", + "BTTUUID" : "F0D84C72-188E-400F-B412-E4B88ACC79D2", + "BTTPredefinedActionType" : 366, + "BTTPredefinedActionName" : "空のプレースホルダ", + "BTTEnabled" : 1, + "BTTEnabled2" : 1, + "BTTOrder" : 0, + "BTTMergeIntoTouchBarGroups" : 0 + }, + { + "BTTActionCategory" : 0, + "BTTLastUpdatedAt" : 1749006027.3472881, + "BTTTriggerType" : 624, + "BTTTriggerTypeDescriptionReadOnly" : "トリガーを選択してください ", + "BTTTriggerClass" : "BTTTriggerTypeKeySequence", + "BTTUUID" : "BD71DCA2-721C-449A-8A61-752B0BA24A06", + "BTTPredefinedActionType" : 366, + "BTTPredefinedActionName" : "空のプレースホルダ", + "BTTEnabled" : 1, + "BTTEnabled2" : 1, + "BTTOrder" : 0, + "BTTAdditionalActions" : [ + { + "BTTActionCategory" : 0, + "BTTLastUpdatedAt" : 1749006027.347275, + "BTTTriggerParentUUID" : "BD71DCA2-721C-449A-8A61-752B0BA24A06", + "BTTIsPureAction" : true, + "BTTTriggerClass" : "BTTTriggerTypeKeySequence", + "BTTUUID" : "E69A5DA9-40BF-4487-B020-64385DFCDA90", + "BTTLayoutIndependentActionChar" : "d", + "BTTShortcutToSend" : "102", + "BTTEnabled" : 1, + "BTTEnabled2" : 1, + "BTTOrder" : 1 + } + ], + "BTTKeySequence" : { + "BTTPauseBetween" : 0.29999999999999999, + "BTTKeyCount" : 2, + "BTTKeyboardType" : -2052004921, + "BTTKeySequenceDownKeys" : [ + { + "BTTKEYCode" : 55, + "BTTKEYDown" : 1, + "BTTKEYOrderRelevant" : 1, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698624 + } + ], + "BTTKeySequenceMixedKeys" : [ + { + "BTTKEYCode" : 55, + "BTTKEYDown" : 1, + "BTTKEYOrderRelevant" : 1, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698624 + }, + { + "BTTKEYCode" : 55, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698624 + } + ], + "BTTKeySequenceUpKeys" : [ + { + "BTTKEYCode" : 55, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698624 + } + ] + } + }, + { + "BTTActionCategory" : 0, + "BTTLastUpdatedAt" : 1749005772.3289399, + "BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut", + "BTTUUID" : "48AA37B4-3F0E-46A8-BF42-FE528B6DA105", + "BTTPredefinedActionType" : 366, + "BTTPredefinedActionName" : "空のプレースホルダ", + "BTTKeyboardShortcutKeyboardType" : 0, + "BTTTriggerOnDown" : 1, + "BTTEnabled" : 1, + "BTTEnabled2" : 1, + "BTTShortcutKeyCode" : -1, + "BTTOrder" : 0, + "BTTAutoAdaptToKeyboardLayout" : 0 + }, + { + "BTTActionCategory" : 0, + "BTTLastUpdatedAt" : 1749006044.377753, + "BTTTriggerType" : 624, + "BTTTriggerTypeDescriptionReadOnly" : "トリガーを選択してください ", + "BTTTriggerClass" : "BTTTriggerTypeKeySequence", + "BTTUUID" : "E95878FF-5A38-4B0B-BE05-D06268DADD4E", + "BTTPredefinedActionType" : 366, + "BTTPredefinedActionName" : "空のプレースホルダ", + "BTTEnabled" : 1, + "BTTEnabled2" : 1, + "BTTOrder" : 1, + "BTTAdditionalActions" : [ + { + "BTTActionCategory" : 0, + "BTTLastUpdatedAt" : 1749006044.389554, + "BTTTriggerParentUUID" : "E95878FF-5A38-4B0B-BE05-D06268DADD4E", + "BTTIsPureAction" : true, + "BTTTriggerClass" : "BTTTriggerTypeKeySequence", + "BTTUUID" : "96E1426B-67CB-4408-85D9-F136F5729157", + "BTTLayoutIndependentActionChar" : "k", + "BTTShortcutToSend" : "104", + "BTTEnabled" : 1, + "BTTEnabled2" : 1, + "BTTOrder" : 1 + } + ], + "BTTKeySequence" : { + "BTTPauseBetween" : 0.29999999999999999, + "BTTKeyCount" : 2, + "BTTKeyboardType" : -2052004921, + "BTTKeySequenceDownKeys" : [ + { + "BTTKEYCode" : 54, + "BTTKEYDown" : 1, + "BTTKEYOrderRelevant" : 1, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698816 + } + ], + "BTTKeySequenceMixedKeys" : [ + { + "BTTKEYCode" : 54, + "BTTKEYDown" : 1, + "BTTKEYOrderRelevant" : 1, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698816 + }, + { + "BTTKEYCode" : 54, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698816 + } + ], + "BTTKeySequenceUpKeys" : [ + { + "BTTKEYCode" : 54, + "BTTKEYRequired" : 1, + "BTTKEYTime" : 770698816 + } + ] + } + } + ] + } + ], + "BTTPresetSnapAreas" : [ + + ] +} diff --git a/Brewfile b/Brewfile index 8115389..451c636 100644 --- a/Brewfile +++ b/Brewfile @@ -27,6 +27,7 @@ brew "zsh-completions" cask "1password" cask "bartender" +cask "bettertouchtool" cask "discord" cask "docker" cask "google-chrome"