Skip to content

Instantly share code, notes, and snippets.

View kdheepak's full-sized avatar

Dheepak Krishnamurthy kdheepak

View GitHub Profile
@kdheepak
kdheepak / git-loglive
Created September 15, 2015 14:57 — forked from tlberglund/git-loglive
Log Live Git Command
#!/bin/bash
while :
do
clear
git --no-pager log --graph --abbrev-commit --decorate --color=always --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) - %C(dim red)%an%C(reset)%C(bold yellow)%d%C(reset)' --all $*
sleep 1
done
@kdheepak
kdheepak / EmacsClient.app
Last active August 29, 2015 14:25
Applescript for EmacsClient.app
on run {input}
try
set emacs_client_path to "usr/local/bin/"
set pathtofile to quoted form of POSIX path of input
set frameVisible to do shell script emacs_client_path & "emacsclient -e '(<= 2 (length (visible-frame-list)))'"
if frameVisible is "t" then
do shell script emacs_client_path & "emacsclient -n " & pathtofile
else
-- there is a not a visible frame, launch one