diff options
| author | 2026-02-14 22:54:28 +0300 | |
|---|---|---|
| committer | 2026-02-14 22:54:28 +0300 | |
| commit | ecbd4e28071990a01b86bded6ec5c9e679179423 (patch) | |
| tree | 73851a1fb8a2e4e0ee7e33fde9503503e78e8a0d | |
| parent | Починил godap (diff) | |
| download | dotfiles-ecbd4e28071990a01b86bded6ec5c9e679179423.tar.gz dotfiles-ecbd4e28071990a01b86bded6ec5c9e679179423.tar.bz2 dotfiles-ecbd4e28071990a01b86bded6ec5c9e679179423.tar.xz dotfiles-ecbd4e28071990a01b86bded6ec5c9e679179423.zip | |
Починил zshrc
| -rw-r--r-- | zsh/.zshrc | 61 |
1 files changed, 26 insertions, 35 deletions
@@ -1,3 +1,4 @@ +source ~/.profile source ~/.config/zsh/antigen.zsh source ~/.config/zsh/conf.d/*.zsh source ~/.config/zsh/termsupport.zsh @@ -6,18 +7,9 @@ source ~/.config/zsh/title.zsh setfont /usr/lib/kbd/consolefonts/ruscii_8x16.psfu.gz # {{{ Exports -export GOPROXY=https://goproxy.ru,direct -export GONOPROXY=*.sovcombank.group -export GOSUMDB=off -export GOPRIVATE=devopar.hippoparking.ru,gitlab.sovcombank.group -export EDITOR="nvim" -#export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock export ANDROID_HOME=$HOME/Android/Sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/platform-tools -export GOPATH=~/go -export PATH=$PATH:~/.local/bin:$GOPATH/bin:~/.cargo/bin #:~/.config/v-analyzer/bin:~/projects/tinygo/bin -export GOBIN=$GOPATH/bin export GPG_TTY=$(tty) export LS_OPTIONS='--color=auto' eval "$(dircolors -b)" @@ -63,6 +55,7 @@ compdef _todo t # }}} # {{{ Functions + foreground () { fg } zle -N foreground clearscr () { clear } @@ -70,29 +63,27 @@ zle -N clearscr function tk() { mkdir -p $1; cd $1; } -function powerline_precmd() { - PS1="$($GOPATH/bin/powerline-go -hostname-only-if-ssh -cwd-max-depth 1 -cwd-mode dironly -error $? -jobs ${${(%):%j}:-0})" - - # Uncomment the following line to automatically clear errors after showing - # them once. This not only clears the error for powerline-go, but also for - # everything else you run in that shell. Don't enable this if you're not - # sure this is what you want. - - set "?" +function workenv() { + export ANTHROPIC_AUTH_TOKEN=$WORK_API + export ANTHROPIC_BASE_URL=http://localhost:7999 + export ANTHROPIC_MODEL=glm-47-flash + export ANTHROPIC_DEFAULT_OPUS_MODEL=glm-47-flash + export ANTHROPIC_DEFAULT_SONNET_MODEL=glm-47-flash + export ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-47-flash + export CLAUDE_CODE_SUBAGENT_MODEL=glm-47-flash + export ENABLE_EXPERIMENTAL_MCP_CLI=true } -function install_powerline_precmd() { - for s in "${precmd_functions[@]}"; do - if [ "$s" = "powerline_precmd" ]; then - return - fi - done - precmd_functions+=(powerline_precmd) +function personalenv() { + export ANTHROPIC_AUTH_TOKEN=$CLOAD_API + export ANTHROPIC_BASE_URL=http://localhost:7998 + export ANTHROPIC_MODEL=zai-org/GLM-4.7 + export ANTHROPIC_DEFAULT_OPUS_MODEL=zai-org/GLM-4.7 + export ANTHROPIC_DEFAULT_SONNET_MODEL=zai-org/GLM-4.7 + export ANTHROPIC_DEFAULT_HAIKU_MODEL=zai-org/GLM-4.7 + export CLAUDE_CODE_SUBAGENT_MODEL=zai-org/GLM-4.7 + export ENABLE_EXPERIMENTAL_MCP_CLI=true } - -if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then - install_powerline_precmd -fi # }}} # {{{ Options section @@ -133,10 +124,10 @@ SAVEHIST=100000 WORDCHARS=${WORDCHARS//\/[&.;]} fpath=(~/.config/zsh/comp $fpath) -autoload -U compinit colors zcalc -compinit -d +autoload -U colors zcalc #compinit +# compinit -d -autoload -Uz compinit && compinit +# autoload -Uz compinit && compinit autoload -U add-zsh-hook add-zsh-hook precmd mzc_termsupport_precmd @@ -195,6 +186,6 @@ source ~/.config/zsh/theme.zsh [[ ! -f ~/.zshrc.local.zsh ]] || source ~/.zshrc.local.zsh # }}} -export NVM_DIR="$HOME/.config/nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +# export NVM_DIR="$HOME/.config/nvm" +# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
