This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# put this in your .bash_profile | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
fi | |
# Piece-by-Piece Explanation: | |
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
# the $PROMPT_COMMAND environment variable is executed every time a command is run | |
# see: ss64.com/bash/syntax-prompt.html |
repositories { mavenCentral() } | |
configurations { sshAntTask } | |
dependencies { sshAntTask 'org.apache.ant:ant-jsch:1.9.2' } | |
ant.taskdef( | |
name: 'scp', | |
classname: 'org.apache.tools.ant.taskdefs.optional.ssh.Scp', | |
classpath: configurations.sshAntTask.asPath) |
# want vi to be the default editor for readline | |
set editing-mode vi | |
# vi settings | |
$if mode=vi | |
# normal mode | |
set keymap vi-command | |
# insert mode | |
set keymap vi-insert | |
"jj": vi-movement-mode # remap escape |
# want vi to be the default editor for readline | |
set editing-mode vi | |
# vi settings | |
$if mode=vi | |
# normal mode | |
set keymap vi-command | |
# insert mode | |
set keymap vi-insert | |
"jj": vi-movement-mode # remap escape |