config tweaks

This commit is contained in:
Petr Nyc
2026-02-13 09:46:37 +01:00
parent 4ee18f77e0
commit b35293a9f0
4 changed files with 80 additions and 26 deletions

View File

@@ -1,10 +1,27 @@
# doc: https://developers.openai.com/codex/config-advanced
# https://developers.openai.com/codex/config-reference
approval_policy = "on-failure"
preferred_auth_method = "apikey"
model = "oca/gpt-5-codex"
profile = "gpt-5-codex"
sandbox_mode = "workspace-write"
# model = "oca/gpt-5-codex"
# profile = "gpt-5-codex"
# model = "oca/gpt-5.1-codex"
# profile = "gpt-5-1-codex"
model = "oca/gpt-5.1-codex-mini"
profile = "gpt-5-1-codex-mini"
web_search_request = true
trust_level = "trusted"
sandbox_mode = "workspace-write"
[sandbox_workspace_write]
network_access = true
writable_roots = [ "/Users/jetpac/.codex/skills" ]
[analytics]
enabled = false
[model_providers.oca-responses]
base_url = "https://code-internal.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm"
http_headers = { "client" = "codex-cli", "client-version" = "0" }
@@ -55,6 +72,7 @@ model = "oca/gpt-5.1-codex"
model_provider = "oca-responses"
review_model = "oca/gpt-5.1-codex"
personality = "pragmatic"
model_reasoning_effort = "high"
[profiles.gpt-5-1-codex-mini]
model = "oca/gpt-5.1-codex-mini"
model_provider = "oca-responses"

View File

@@ -104,13 +104,14 @@
timewarrior # timewarrior tracking status (https://timewarrior.net/)
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
cpu_arch # CPU architecture
battery
time # current time
# =========================[ Line #2 ]=========================
newline
# ip # ip address and bandwidth usage for a specified network interface
# public_ip # public IP address
proxy # system-wide http/https/ftp proxy
battery # internal battery
# battery # internal battery
# wifi # wifi speed
# example # example user-defined segment (see prompt_example function below)
)

View File

@@ -76,6 +76,7 @@ This function should only modify configuration layer settings."
org-enable-bootstrap-support t
org-enable-jira-support t
jiralib-url "https://jira.oci.oraclecorp.com"
jiralib-target-api-version 2
;; org-enable-roam-support t
;; org-enable-roam-ui t
;; org-roam-completion-everywhere t
@@ -111,6 +112,7 @@ This function should only modify configuration layer settings."
org-mac-link
org-alert
org-msg
ai-code
;org-caldav
;org-protocol
)
@@ -278,8 +280,9 @@ It should only modify the values of Spacemacs settings."
;; List of themes, the first of the list is loaded when spacemacs starts.
;; Press `SPC T n' to cycle to the next theme in the list (works great
;; with 2 themes variants, one dark and one light)
dotspacemacs-themes '(doom-solarized-dark
dotspacemacs-themes '(
spacemacs-dark
doom-solarized-dark
spacemacs-light
doom-solarized-dark-high-contrast-theme
)
@@ -637,6 +640,32 @@ configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
;; codex config
(use-package ai-code
;; :straight (:host github :repo "tninja/ai-code-interface.el") ;; if you want to use straight to install, no need to have MELPA setting above
:config
;; use codex as backend, other options are 'claude-code, 'gemini, 'github-copilot-cli, 'opencode, 'grok, 'cursor, 'kiro, 'codebuddy, 'aider, 'claude-code-ide, 'claude-code-el
(ai-code-set-backend 'codex)
;; Enable global keybinding for the main menu
;; (global-set-key (kbd "C-c a") #'ai-code-menu)
(spacemacs/set-leader-keys "oi" 'ai-code-menu)
;; Optional: Use eat if you prefer, by default it is vterm
;; (setq ai-code-backends-infra-terminal-backend 'eat) ;; the way to config all native supported CLI. for external backend such as claude-code-ide.el and claude-code.el, please check their config
;; Optional: Enable @ file completion in comments and AI sessions
(ai-code-prompt-filepath-completion-mode 1)
;; Optional: Ask AI to run test after code changes, for a tighter build-test loop
(setq ai-code-auto-test-type 'test-after-change)
;; Optional: In AI session buffers, SPC in Evil normal state triggers the prompt-enter UI
(with-eval-after-load 'evil (ai-code-backends-infra-evil-setup))
;; Optional: Turn on auto-revert buffer, so that the AI code change automatically appears in the buffer
(global-auto-revert-mode 1)
(setq auto-revert-interval 1) ;; set to 1 second for faster update
;; (global-set-key (kbd "C-c a C") #'ai-code-toggle-filepath-completion)
;; Optional: Set up Magit integration for AI commands in Magit popups
(with-eval-after-load 'magit
(ai-code-magit-setup-transients)))
;; email config
;; the saved command is a work-around for not working address completion
(setq notmuch-show-logo nil
@@ -901,7 +930,7 @@ before packages are loaded."
(spacemacs/set-leader-keys "ot" 'toggle-proxy)
;; Bind ai for aidermacs
(spacemacs/set-leader-keys "ai" 'aidermacs-transient-menu)
;; (spacemacs/set-leader-keys "ai" 'aidermacs-transient-menu)
;; idea from chatgpt
(defun jp/set-dotfiles-environment ()
@@ -1316,7 +1345,7 @@ This function is called at the very end of Spacemacs initialization."
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes '(doom-solarized-dark))
;; '(custom-enabled-themes '(doom-solarized-dark))
'(custom-safe-themes
'("d97ac0baa0b67be4f7523795621ea5096939a47e8b46378f79e78846e0e4ad3d"
"21d2bf8d4d1df4859ff94422b5e41f6f2eeff14dd12f01428fa3cb4cb50ea0fb"
@@ -1469,23 +1498,25 @@ This function is called at the very end of Spacemacs initialization."
'((:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key [105])
(:name "To me Unread" :query "tag:me AND tag:unread" :key [109])))
'(notmuch-search-oldest-first nil)
'(org-hide-leading-stars t)
'(package-selected-packages
'(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent aidermacs aio
alect-themes alert all-the-icons ample-theme ample-zen-theme
anaconda-mode anti-zenburn-theme apropospriate-theme auto-compile
auto-highlight-symbol auto-yasnippet autothemer badwolf-theme
birds-of-paradise-plus-theme blacken bmx-mode bubbleberry-theme bui
busybee-theme centered-cursor-mode cherry-blossom-theme chocolate-theme
clean-aindent-mode closql clues-theme code-cells code-review
color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow
column-enforce-mode company company-anaconda company-box
company-quickhelp company-shell company-statistics company-terraform
company-web concurrent cond-let conda ctable cyberpunk-theme cython-mode
dakrone-theme dap-mode darkmine-theme darkokai-theme darktooth-theme
deferred define-word devdocs diminish dired-quick-sort disable-mouse
django-theme docker dockerfile-mode doom-themes dotenv-mode dracula-theme
drag-stuff dumb-jump eat edit-indirect editorconfig ef-themes elisp-def
elisp-demos elisp-slime-nav emacsql emmet-mode emojify emr epc esh-help
'(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent ai-code
aidermacs aio alect-themes alert all-the-icons ample-theme
ample-zen-theme anaconda-mode anti-zenburn-theme apropospriate-theme
auto-compile auto-highlight-symbol auto-yasnippet autothemer
badwolf-theme birds-of-paradise-plus-theme blacken bmx-mode
bubbleberry-theme bui busybee-theme centered-cursor-mode
cherry-blossom-theme chocolate-theme clean-aindent-mode closql
clues-theme code-cells code-review color-theme-sanityinc-solarized
color-theme-sanityinc-tomorrow column-enforce-mode company
company-anaconda company-box company-quickhelp company-shell
company-statistics company-terraform company-web concurrent cond-let
conda ctable cyberpunk-theme cython-mode dakrone-theme dap-mode
darkmine-theme darkokai-theme darktooth-theme deferred define-word
devdocs diminish dired-quick-sort disable-mouse django-theme docker
dockerfile-mode doom-themes dotenv-mode dracula-theme drag-stuff
dumb-jump eat edit-indirect editorconfig ef-themes elisp-def elisp-demos
elisp-slime-nav emacsql emmet-mode emojify emr epc esh-help
eshell-prompt-extras eshell-z espresso-theme eval-sexp-fu evil-anzu
evil-args evil-cleverparens evil-collection evil-easymotion evil-escape
evil-evilified-state evil-exchange evil-goggles evil-iedit-state
@@ -1493,12 +1524,12 @@ This function is called at the very end of Spacemacs initialization."
evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line
evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar
exotica-theme expand-region eyebrowse eziam-themes fancy-battery
farmhouse-themes fish-mode flatland-theme flatui-theme flx-ido forge
frame-local gandalf-theme ggtags gh-md ghub git-link git-messenger
farmhouse-themes fish-mode flatland-theme flatui-theme flx-ido flycheck
forge frame-local gandalf-theme ggtags gh-md ghub git-link git-messenger
git-modes git-timemachine gitignore-templates gntp gnuplot golden-ratio
google-translate gotham-theme grandshell-theme groovy-imports groovy-mode
gruber-darker-theme gruvbox-theme haml-mode hc-zenburn-theme hcl-mode
helm-ag helm-c-yasnippet helm-comint helm-company helm-css-scss
helm helm-ag helm-c-yasnippet helm-comint helm-company helm-css-scss
helm-descbinds helm-git-grep helm-ls-git helm-lsp helm-make
helm-mode-manager helm-notmuch helm-org helm-org-rifle helm-projectile
helm-purpose helm-pydoc helm-swoop helm-themes helm-xref hemisu-theme

4
.zshrc
View File

@@ -304,3 +304,7 @@ if command -v launchctl >/dev/null 2>&1; then
fi
export GPG_TTY=$(tty)
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
# export PATH="/Users/jetpac/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)