terminal - iterm2 zshell cmd+click open to github diff page -


i have been researching how change behavior day no luck, here goes.

is there way in iterm2, when viewing git logs, change way cmd+click functions on git log hash? ideally, hoping cmd+click would open browser window correct github url change set viewed.

if not possible, please let me know. believe helpful others, wish had magic wand figure out how configure this.

thoughts?

while not ideal, here how able work around issue. built commit hook! not perfect, know. ideas?

#!/bin/sh # # automatically adds branch name , branch description every commit message. # edit .git/hooks/commit-msg & make sure excutable chmod +x # requires git config --add remote.github.url {value} # name=$(git branch | grep '*' | sed 's/* //') description=$(git config branch."$name".description) text=$(cat "$1" | sed '/^#.*/d') git_commit_short_id=$(git rev-parse --short head) git_commit_id=$(git rev-parse head) git_github_url=$(git config --get remote.github.url)  if [ -n "$text" ]     echo "$name"': '$(cat "$1" | sed '/^#.*/d') > "$1"     if [ -n "$description" ]            echo "" >> "$1"        echo $description >> "$1"     fi     echo $git_github_url$git_commit_id >> "$1" else     echo "aborting commit due empty commit message."     exit 1 fi 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -