更換zsh AI工具為zsh_codex
This commit is contained in:
@@ -6,6 +6,9 @@ fi
|
||||
# 通用顏色文字輸出(要在最前面執行,不然會失效)
|
||||
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
|
||||
|
||||
# 設定#開頭一定就判定為註解
|
||||
setopt interactivecomments
|
||||
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
@@ -163,15 +166,19 @@ zinit light sunlei/zsh-ssh
|
||||
zinit light ocodo/ollama_zsh_completion
|
||||
# zinit snippet https://gist.github.com/obeone/9313811fd61a7cbb843e0001a4434c58/raw/5a6a44efc6a07b6f937dbc596d9d7385b297dda8/_ollama.zsh
|
||||
|
||||
# Kollzsh zsh命令行直接輸入模糊語意用途,按下ctrl+o以後,會連線到API伺服器取出正確指令下法
|
||||
zinit light chyuaner/kollzsh
|
||||
KOLLZSH_MODEL="qwen2.5-coder:7b"
|
||||
KOLLZSH_HOTKEY="^o"
|
||||
KOLLZSH_COMMAND_COUNT=5
|
||||
KOLLZSH_URL={{ .ollamaUrl | quote }}
|
||||
KOLLZSH_APIKEY={{ .ollamaKey | quote }}
|
||||
KOLLZSH_KEEP_ALIVE="1h"
|
||||
KOLLZSH_PYTHON3="python3"
|
||||
# zsh_codex
|
||||
zinit light tom-doerr/zsh_codex
|
||||
bindkey '^X' create_completion
|
||||
|
||||
# # Kollzsh zsh命令行直接輸入模糊語意用途,按下ctrl+o以後,會連線到API伺服器取出正確指令下法
|
||||
# zinit light chyuaner/kollzsh
|
||||
# KOLLZSH_MODEL="qwen2.5-coder:7b"
|
||||
# KOLLZSH_HOTKEY="^o"
|
||||
# KOLLZSH_COMMAND_COUNT=5
|
||||
# KOLLZSH_URL={{ .ollamaUrl | quote }}
|
||||
# KOLLZSH_APIKEY={{ .ollamaKey | quote }}
|
||||
# KOLLZSH_KEEP_ALIVE="1h"
|
||||
# KOLLZSH_PYTHON3="python3"
|
||||
|
||||
# overwrite ls
|
||||
if command -v colorls &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user