diff --git a/config/fish/config.fish b/config/fish/config.fish index a483354..476aec5 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -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 diff --git a/config/fish/functions/gpa.fish b/config/fish/functions/gpa.fish new file mode 100644 index 0000000..665bea7 --- /dev/null +++ b/config/fish/functions/gpa.fish @@ -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 diff --git a/config/starship.toml b/config/starship.toml index fa762e7..22ccb61 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -37,4 +37,7 @@ format = '⏱️ [$duration]($style) ' [directory] truncation_length = 3 -truncate_to_repo = false \ No newline at end of file +truncate_to_repo = false + +[gcloud] +disabled = true