diff options
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/claude.nix | 5 | ||||
| -rw-r--r-- | modules/home/zsh.nix | 22 |
2 files changed, 21 insertions, 6 deletions
diff --git a/modules/home/claude.nix b/modules/home/claude.nix index 5895f03..c5e1b86 100644 --- a/modules/home/claude.nix +++ b/modules/home/claude.nix @@ -20,6 +20,11 @@ # Nix - If a command is not available and there is a `flake.nix` in the project, use `nix develop` or `nix run` to run commands from the flake's dev shell instead of installing tools manually. + + # Loggie + + - If the Loggie MCP server is available, use the `annotate` tool to describe what you are working on at the start of a session and when the task changes. Keep annotations short and descriptive (e.g. "Fixing auth bug in login flow", "Adding CSV export endpoint"). + - When annotating, also set the tmux window title using `tmux rename-window "<title>"`. The title should be very short and recognizable — it does not need to match the annotation exactly. ''; home.file.".claude/skills/push/SKILL.md".text = '' diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index 142d0b4..ec86d4b 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -66,6 +66,12 @@ in # Remove stale compiled zsh files that shadow nix-managed configs rm -f ~/.config/zsh/.zshrc.zwc ~/.config/zsh/{aliases,path,extras}.zwc + function set_terminal_title() { + printf '\033]0;%s@%s:%s\033\\' "$USER" "''${HOST%%.*}" "''${PWD/#$HOME/~}" + } + autoload -Uz add-zsh-hook + add-zsh-hook precmd set_terminal_title + eval "$(starship init zsh)" source ~/.zsh_repos/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh @@ -123,6 +129,16 @@ in alias vim="nvim" alias v="nvim" + function claude() { + if [[ -n "$TMUX" ]]; then + tmux rename-window "claude" + command claude "$@" + tmux set-window-option automatic-rename on + else + command claude "$@" + fi + } + alias dump-issues="getBjerkIssues > ~/Downloads/issues-$(date -I).json" ''; @@ -172,12 +188,6 @@ in --jq 'map({url, createdAt, title, labels: [.labels[].name], assignees: [.assignees[].login], body, number: "#\(.number)", comments: .comments | map({ body: .body, createdAt: .createdAt })})' } - function ssh() { - printf '\033]0;ssh %s\033\\' "$*" - command ssh "$@" - printf '\033]0;%s@%s:%s\033\\' "$USER" "$HOST" "''${PWD/#$HOME/~}" - } - function g() { export GOOGLE_CLOUD_PROJECT="sokkel-sandbox" export GOOGLE_CLOUD_LOCATION="europe-north1" |
