tkancf.com

2025-01

投稿日: 2025-01-02 16:41

2025-01

2025/01/31

Terminal window
❰tkan❙~❱✔≻ fisher install gazorby/fish-abbreviation-tips
fisher install version 4.4.5
Fetching https://api.github.com/repos/gazorby/fish-abbreviation-tips/tarball/HEAD
Installing gazorby/fish-abbreviation-tips
/Users/tkan/.config/fish/functions/__abbr_tips_bind_newline.fish
/Users/tkan/.config/fish/functions/__abbr_tips_bind_space.fish
/Users/tkan/.config/fish/functions/__abbr_tips_clean.fish
/Users/tkan/.config/fish/functions/__abbr_tips_init.fish
/Users/tkan/.config/fish/conf.d/abbr_tips.fish
Installed 1 plugin/s
Terminal window
❰tkan❙~❱✘≻ brew install atuin
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Downloading https://ghcr.io/v2/homebrew/core/atuin/manifests/18.4.0
#################################################################################################################################################################################################### 100.0%
==> Fetching atuin
==> Downloading https://ghcr.io/v2/homebrew/core/atuin/blobs/sha256:186d1bb3e620de43fd544ba346900eff75967f539a6d2760af15217165d59f29
#################################################################################################################################################################################################### 100.0%
==> Pouring atuin--18.4.0.arm64_sequoia.bottle.tar.gz
==> Caveats
fish completions have been installed to:
/opt/homebrew/share/fish/vendor_completions.d
To start atuin now and restart at login:
brew services start atuin
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/atuin/bin/atuin daemon
==> Summary
🍺 /opt/homebrew/Cellar/atuin/18.4.0: 14 files, 28MB
==> Running `brew cleanup atuin`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

config.fishに追加

Terminal window
# atuin
## https://docs.atuin.sh/
## Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. With this context, Atuin gives you faster and better search of your shell history.
atuin init fish | source

jethrokuan/fzfがキーバインド競合するので削除

Terminal window
❰tkan❙~❱✔≻ fisher install PatrickF1/fzf.fish
fisher install version 4.4.5
Fetching https://api.github.com/repos/patrickf1/fzf.fish/tarball/HEAD
Installing patrickf1/fzf.fish
/Users/tkan/.config/fish/functions/_fzf_configure_bindings_help.fish
/Users/tkan/.config/fish/functions/_fzf_extract_var_info.fish
/Users/tkan/.config/fish/functions/_fzf_preview_changed_file.fish
/Users/tkan/.config/fish/functions/_fzf_preview_file.fish
/Users/tkan/.config/fish/functions/_fzf_report_diff_type.fish
/Users/tkan/.config/fish/functions/_fzf_report_file_type.fish
/Users/tkan/.config/fish/functions/_fzf_search_directory.fish
/Users/tkan/.config/fish/functions/_fzf_search_git_log.fish
/Users/tkan/.config/fish/functions/_fzf_search_git_status.fish
/Users/tkan/.config/fish/functions/_fzf_search_history.fish
/Users/tkan/.config/fish/functions/_fzf_search_processes.fish
/Users/tkan/.config/fish/functions/_fzf_search_variables.fish
/Users/tkan/.config/fish/functions/_fzf_wrapper.fish
/Users/tkan/.config/fish/functions/fzf_configure_bindings.fish
/Users/tkan/.config/fish/conf.d/fzf.fish
/Users/tkan/.config/fish/completions/fzf_configure_bindings.fish
Updated 1 plugin/s

2025/01/30

jorgebucaran/fisherを導入する

README通りに導入した。
~/.config配下のファイルが更新されたので、そのままdotfilesで管理する

Terminal window
❰tkan❙~❱✔≻ curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher install version 4.4.5
Fetching https://api.github.com/repos/jorgebucaran/fisher/tarball/HEAD
Installing jorgebucaran/fisher
/Users/tkan/.config/fish/functions/fisher.fish
/Users/tkan/.config/fish/completions/fisher.fish
Installed 1 plugin/s

fzf連携のプラグインを入れてみる

Terminal window
❰tkan❙~❱✔≻ fisher install jethrokuan/fzf
fisher install version 4.4.5
Fetching https://api.github.com/repos/jethrokuan/fzf/tarball/HEAD
Installing jethrokuan/fzf
/Users/tkan/.config/fish/functions/__fzf_cd.fish
/Users/tkan/.config/fish/functions/__fzf_complete.fish
/Users/tkan/.config/fish/functions/__fzf_complete_preview.fish
/Users/tkan/.config/fish/functions/__fzf_find_file.fish
/Users/tkan/.config/fish/functions/__fzf_get_dir.fish
/Users/tkan/.config/fish/functions/__fzf_open.fish
/Users/tkan/.config/fish/functions/__fzf_parse_commandline.fish
/Users/tkan/.config/fish/functions/__fzf_reverse_isearch.fish
/Users/tkan/.config/fish/functions/__fzfcmd.fish
/Users/tkan/.config/fish/conf.d/fzf.fish
Installed 1 plugin/s

2025/01/29

2025/01/27

あとで読む

2025/01/26

2025/01/25

homeshickを試す

2025/01/24

2025/01/23

2025/01/22

2025/01/21

2025/01/20

2025/01/18

2025/01/17

2025/01/16

2025/01/15

2025/01/14

2025/01/13

2025/01/12

2025/01/11

2025/01/10

2025/01/09

2025/01/08

2025/01/07

miseセットアップ

miseに良さげなリリースが来てたのでセットアップ

Terminal window
brew install mise
echo 'eval "$(/opt/homebrew/bin/mise activate zsh)"' >> ~/.zshrc

blink.cmpを試す

{
'saghen/blink.cmp',
dependencies = 'rafamadriz/friendly-snippets',
version = '*',
opts = {
keymap = { preset = 'super-tab' },
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' },
},
completion = {
accept = { auto_brackets = { enabled = true }, },
-- list = { selection = { preselect = true, auto_insert = true } },
list = { selection = "preselect" },
},
},
opts_extend = { "sources.default" },
},

2025/01/06

2025/01/04

2025/01/03

2025/01/02

まずは下記からTSに変換していく

{
"description": "英数・かなキーを他のキーと組み合わせて押したときに、コマンドキーを送信する。",
"manipulators": [
{
"from": {
"key_code": "japanese_eisuu",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_command" }],
"to_if_alone": [{ "key_code": "japanese_eisuu" }],
"type": "basic"
},
{
"from": {
"key_code": "japanese_kana",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_command" }],
"to_if_alone": [{ "key_code": "japanese_kana" }],
"type": "basic"
},
{
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_command" }],
"to_if_alone": [{ "key_code": "japanese_kana" }],
"type": "basic"
}
]
}

2025/01/01

" vim: foldmethod=marker foldlevel=1