Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7862463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:08:13+00:00 2026-06-02T23:08:13+00:00

I remember in a Git-tutorial video that the user’s terminal (probably ZSH) was split

  • 0

I remember in a Git-tutorial video that the user’s terminal (probably ZSH) was split into two; one for the standard terminal commands, and below that there was something like Git log graphical representation. It was always visible at the bottom of the terminal with nice colors.

terminal screen.

How is it possible to split the terminal screen into two and display Git log (something like git log --pretty=format:'%h : %s' --graph) on the terminal screen?

UPDATE: I found the video on Vimeo, http://vimeo.com/16018419. I am trying to do the exact same setup on my ZSH terminal.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:08:15+00:00Added an answer on June 2, 2026 at 11:08 pm

    with tmux, you can split-pane zsh -c while :; do sleep 60; git log ...; done and this should achieve an automagically refreshing git log output in a pane.

    supply [-vh] [percent] to split-pane to split vert or horiz with a given percent of the terminal. iirc, it splits from bottom and/or right side of terminal, so adjust percentage accordingly.

    this should have the desired effect of having git log in a pane beside $EDITOR (or below), with appropriate dimensions and automagically refresh every minute. feel free to alter or clean up syntax to suit your needs.

    EDIT:
    respawning a pane in tmux can be done with the tmux builtin respawn-pane. you can bind a key something like this to get a simple shortcut

    bind-key -n M-r respawn-pane -t git:0.1 [command]

    in this example, i assume 3 things. first, that you have a named tmux session (named git, but this is arbitrary and to your choosing by using rename-session in tmux or by launching the session with new-session -s name). second, that the git log (which is what we want to refresh) is at window of index 0 (this is the first window opened in a session, by default, unless you set base-index to else) and the pane of index 1.

    so here, it respawns the second pane of the first window in the “git” session by pressing alt-r. if you use the loop i provided before, this is unnecessary to do because the log will refresh itself after each sleep. that may be considered wasteful to some, so you may arbitrarily decide to respawn this pane at your whim instead.

    [command] is optional. tmux’s respawn-pane will execute the command that was given when the pane was spawned at first. in this example, it will be the while loop by default. if you skip the loop and instead just use split-pane [-hv] [percent] "git log ..." then do not provide the optional command parameter as the pane will run it for you smartly. providing the command parameter to respawn-pane will take precedence over the initial command used when spawning the pane.

    finally, if you do not provide the command parameter to split-pane initially, tmux will run whatever value default-command is.

    so there you have an overly verbose explanation of how to do what this video does in multiple ways.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I remember that at one point, it was said that Python is less object
I'd like to convert my Git repository to a bare one. I distinctly remember
I need to see one file from git history, but I don't remember what
I remember the days of Shadowrun that got me excited about hacking. There is
I remember seeing a poster a few years back that had a nice break
I remember that in previous installations of Visual Studio that I had, when I
I remember reading a blog post about a group that had taken a branch
I remember seeing somewhere that you could call python methods from inside C using
I remember VB5 (and all the horrors in it), but one thing I liked
So i remember that i once did something in another project and (later removed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.