Skip to content

Instantly share code, notes, and snippets.

@cmj
Created October 26, 2026 16:25
Show Gist options
  • Select an option

  • Save cmj/1c8fe98bcf833cd38dc9fb97c947084e to your computer and use it in GitHub Desktop.

Select an option

Save cmj/1c8fe98bcf833cd38dc9fb97c947084e to your computer and use it in GitHub Desktop.
bash at command scriipt

Enable @username in bash render tweets via kitty-tweet

copy this into ~/.bashrc

command_not_found_handle() {
    if [[ $1 =~ ^@[^[:space:]]+$ ]]; then
        kitty-tweet "$@"
        return $?
    fi

    echo "bash: $1: command not found" >&2
    return 127
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment