Skip to content

Instantly share code, notes, and snippets.

@hugcis
hugcis / statusline.sh
Last active February 24, 2026 21:30
Claude Code status line – git info, context bar, vim mode, API usage with pace tracking
#!/bin/bash
input=$(cat)
cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd')
dir=$(basename "$cwd")
# Git branch + clean/dirty
git_info=""
if git -C "$cwd" rev-parse --git-dir > /dev/null 2>&1; then
branch=$(git -C "$cwd" --no-optional-locks rev-parse --abbrev-ref HEAD 2>/dev/null)
if [ -n "$branch" ]; then
@hugcis
hugcis / _index.md
Created March 8, 2023 09:29
Resume source markdown+HTML in my personal website
description
Hugo Cisneros' resume

Resume

For a PDF version, see here


@hugcis
hugcis / publish.el
Created June 16, 2021 14:08
Elisp script with functions to export my notes to Hugo-markdown with ox-hugo
;;; publish --- Summary
;;; Commentary:
(require 'find-lisp)
;;; Code:
(defun hugcis/publish-note (file)
"Publish a note in FILE."
(with-current-buffer (find-file-noselect file)
(projectile-mode -1)
(setq org-hugo-section "notes"
@hugcis
hugcis / cfg_install.sh
Last active January 20, 2022 12:48
Install script for my personal configuration
# Original file https://bitbucket.org/durdn/cfg/raw/master/.bin/install.sh
# Config is stored in $HOME as a bare git repo
git clone --bare https://github.com/hugcis/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup