Created
November 16, 2011 17:20
-
-
Save uasi/1370716 to your computer and use it in GitHub Desktop.
Embedding shell script in .tmux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat <<__DATA__ >/dev/null | |
# Your tmux configuration here | |
set-option -g prefix C-t | |
unbind-key C-b | |
bind-key C-t send-prefix | |
# Call foo | |
run "cut -c3- ~/.tmux.conf | sh -s foo" | |
# Call bar | |
run "cut -c3- ~/.tmux.conf | sh -s bar" | |
# __DATA__ | |
# | |
# function foo { | |
# # Do foo | |
# } | |
# | |
# function bar { | |
# # Do bar | |
# } | |
# | |
# $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment