diff --git a/arch-user/bin/bemenu/pinentry.sh b/arch-user/bin/bemenu/pinentry.sh index 6b8a9ee..fae15af 100755 --- a/arch-user/bin/bemenu/pinentry.sh +++ b/arch-user/bin/bemenu/pinentry.sh @@ -1,4 +1,6 @@ #!/bin/bash -efu +# based on https://github.com/legionus/pinentry-bash/blob/master/pinentry-bash + ### This file is covered by the GNU General Public License, ### which should be included with libshell as the file LICENSE. ### All copyright information are listed in the COPYING. diff --git a/arch-user/config/aichat/config.yaml.tmpl b/arch-user/config/aichat/config.yaml.tmpl index bd17692..d895949 100644 --- a/arch-user/config/aichat/config.yaml.tmpl +++ b/arch-user/config/aichat/config.yaml.tmpl @@ -1,9 +1,6 @@ # see https://github.com/sigoden/aichat/blob/main/config.example.yaml # see https://github.com/sigoden/aichat/blob/main/models.yaml -model: openrouter:anthropic/claude-sonnet-4 -function_calling: false - clients: - type: openai-compatible @@ -12,22 +9,9 @@ clients: api_key: {{ .user.AI_OPENROUTER_KEY }} models: - - name: anthropic/claude-opus-4 - max_input_tokens: 200000 - max_output_tokens: 20000 - require_max_tokens: true - input_price: 15 - output_price: 75 - supports_vision: true - supports_function_calling: true - patch: - body: - reasoning: - effort: high - - - name: anthropic/claude-sonnet-4 - max_input_tokens: 200000 - max_output_tokens: 20000 + - name: anthropic/claude-sonnet-4.5 + max_input_tokens: 350000 + max_output_tokens: 65000 require_max_tokens: true input_price: 3 output_price: 15 @@ -38,35 +22,15 @@ clients: reasoning: effort: high - - name: deepseek/deepseek-chat-v3.1 + - name: deepseek/deepseek-v3.2-exp max_input_tokens: 163840 input_price: 0.20 - output_price: 0.80 + output_price: 0.40 patch: body: reasoning: effort: high - - name: deepseek/deepseek-chat-v3.1:free - max_input_tokens: 163840 - input_price: 0 - output_price: 0 - patch: - body: - reasoning: - effort: high - - - - name: perplexity/sonar-pro - max_input_tokens: 200000 - input_price: 3 - output_price: 15 - - - name: perplexity/sonar - max_input_tokens: 127072 - input_price: 1 - output_price: 1 - - name: openai/gpt-4.1 max_input_tokens: 1047576 max_output_tokens: 32768 diff --git a/arch-user/config/aichat/roles/ds-free.md b/arch-user/config/aichat/roles/ds-free.md deleted file mode 100644 index e17e2b1..0000000 --- a/arch-user/config/aichat/roles/ds-free.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -model: openrouter:deepseek/deepseek-chat-v3.1:free ---- diff --git a/arch-user/config/aichat/roles/ds.md b/arch-user/config/aichat/roles/ds.md index d33a98c..1a6dddc 100644 --- a/arch-user/config/aichat/roles/ds.md +++ b/arch-user/config/aichat/roles/ds.md @@ -1,3 +1,3 @@ --- -model: openrouter:deepseek/deepseek-chat-v3.1 +model: openrouter:deepseek/deepseek-v3.2-exp --- diff --git a/arch-user/config/aichat/roles/opus.md b/arch-user/config/aichat/roles/opus.md deleted file mode 100644 index 05b3314..0000000 --- a/arch-user/config/aichat/roles/opus.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -model: openrouter:anthropic/claude-opus-4 ---- diff --git a/arch-user/config/bash/bashrc b/arch-user/config/bash/bashrc index 76154cf..61aa979 100644 --- a/arch-user/config/bash/bashrc +++ b/arch-user/config/bash/bashrc @@ -2,6 +2,8 @@ [[ $- != *i* ]] && return +shopt -s autocd + stty intr ^K alias ssh='wssh' @@ -13,6 +15,9 @@ alias node='NODE_NO_READLINE=1 rlwrap node' export EDITOR=vim +export FZF_COMPLETION_TRIGGER='*' +eval "$(fzf --bash)" + PS0+='\e]133;C\e\\' command_done() { printf '\e]133;D\e\\' diff --git a/arch-user/config/fzf/config b/arch-user/config/fzf/config new file mode 100644 index 0000000..1bef946 --- /dev/null +++ b/arch-user/config/fzf/config @@ -0,0 +1 @@ +--color=base16 diff --git a/arch-user/config/fzf/env.sh b/arch-user/config/fzf/env.sh new file mode 100644 index 0000000..8ba7ad4 --- /dev/null +++ b/arch-user/config/fzf/env.sh @@ -0,0 +1 @@ +export FZF_DEFAULT_OPTS_FILE="$HOME/.config/fzf/config"