Skip to content

Instantly share code, notes, and snippets.

@christianparpart
Last active February 20, 2026 14:36
Show Gist options
  • Select an option

  • Save christianparpart/7f80a3c5a751a8dd6c01537e4f6fe6c8 to your computer and use it in GitHub Desktop.

Select an option

Save christianparpart/7f80a3c5a751a8dd6c01537e4f6fe6c8 to your computer and use it in GitHub Desktop.
# ~/.config/endo/init.endo
# Aliases for common commands with enhanced formatting.
#let ls ...xs = & lsd ...xs
let l ...xs = & lsd -l ...xs
let ll ...xs = & lsd -la ...xs
let ip ...xs = & ip --color=auto ...xs
let po ...xs = & ps -o 'pid,tty,comm,wchan:21,cmd' ...xs
let bat ...xs = & bat --italic-text=always ...xs
let export EDITOR = "nvim"
let export LANG = "en_US.UTF-8"
let export GNUTERM = "sixel"
let export BAT_THEME = "Monokai Extended Bright"
let export PATH = [
(env "HOME")? + "/.cargo/bin";
(env "HOME")? + "/.local/bin";
(env "HOME")? + "/.opencode/bin";
(env "HOME")? + "/projects/endo/build/clang-debug/src/shell";
(env "HOME")? + "/usr/opt/Lightweight/bin";
(env "HOME")? + "/usr/opt/dude/bin";
(env "HOME")? + "/usr/opt/libunicode/bin";
(env "PATH")?
] |> join ":"
let configure_shell_prompt () =
# Endo Signature style — gradient path, rounded separators,
# git status, F# mode badge, and developer-friendly defaults.
shell_prompt_preset "endo-signature"
shell_prompt_duration_threshold 1000
shell_prompt_transient "arrow"
shell_prompt_spacing 1
#shell_prompt_indicator('❯')
#shell_prompt_separator ...
#shell_prompt_layout ...
let configure_agent () =
# Agent provider and model
#agent_provider <- "claude"
agent_provider <- 'gemini'
agent_claude_model <- "claude-sonnet-4-5-20250929"
agent_log_tool_uses <- true
agent_trace_enabled <- true
# Plan mode
agent_plan_mode_enabled <- true
agent_plan_mode_max_exploration_turns <- 20
# Explore sub-agent
agent_explore_max_turns <- 15
# MCP servers
add_mcp_server "dude" "dude --mcp"
# add_mcp_server "filesystem" "npx -y @modelcontextprotocol/server-filesystem /home/user"
# add_mcp_server "github" "npx -y @modelcontextprotocol/server-github"
# set_mcp_env "github" "GITHUB_TOKEN" (env 'GITHUB_TOKEN')?
# Web search
# set_web_search_engine "duckduckgo"
configure_shell_prompt()
configure_agent()
if shell_is_interactive then
& echo "Welcome to Endo Shell!" | lolcat
# Safe way to call: `fortune | lolcat`
match which "fortune", which "lolcat" with
| Some f, Some l -> exec f | exec l
| Some f, None -> exec f
| None, Some l -> exec "echo" "No words of wisdom today." | exec l
| None, None -> println "No words of wisdom today."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment