Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ abbr gsh 'git stash'
abbr gsp 'git stash pop'

# Audio aliases
abbr cuca 'uv run --with "numpy,pyaudio" ~/content-tools/scripts/virtual_mic_delay.py'
# cuca is now a real executable symlinked into ~/.local/bin, no abbr needed
abbr transcribe '~/whisper_app/index.js ~/Downloads/"$input_name"_ff.mp4'

# Kanata control aliases
Expand Down
16 changes: 16 additions & 0 deletions config/fish/functions/gpa.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function gpa --description "Fetch + fast-forward every git repo in the current dir"
for dir in */
test -d $dir/.git; or continue
set_color --bold; echo (string trim -r -c / $dir); set_color normal
git -C $dir fetch --all --prune --quiet
if test -n "$(git -C $dir status --porcelain)"
set_color yellow; echo " dirty, fetched only"; set_color normal
continue
end
if not git -C $dir rev-parse --abbrev-ref '@{u}' >/dev/null 2>&1
set_color yellow; echo " no upstream, fetched only"; set_color normal
continue
end
git -C $dir pull --ff-only 2>&1 | tail -1 | sed 's/^/ /'
end
end
5 changes: 4 additions & 1 deletion config/starship.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ format = '鈴憋笍 [$duration]($style) '

[directory]
truncation_length = 3
truncate_to_repo = false
truncate_to_repo = false

[gcloud]
disabled = true