Last active
August 4, 2018 03:24
-
-
Save paxperscientiam/cca644afa92bea30e4e7ce42942c4f21 to your computer and use it in GitHub Desktop.
Example implementation of tmux-xpanes with iTerm2
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Check out tmux-xpanes: https://github.com/greymd/tmux-xpanes | |
| unset CDPATH | |
| PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/local/bin | |
| function title () | |
| { | |
| echo -ne "\033]0;"$*"\007" | |
| } | |
| function status() { | |
| # "Send text" for profile is this: ${HOME}/.config/tmux-xpanes/schemes.bash status | |
| title Dashboard | |
| xpanes -t -l t -c "{}" "neofetch" "wtf" "vtop" | |
| } | |
| function finances() { | |
| # "Send text" for profile is this: ${HOME}/.config/tmux-xpanes/schemes.bash finances | |
| cd "${HOME}/Dropbox/FINANCE/Ledger/transactions" | |
| title Money Money | |
| xpanes -t -d -l eh -c "{}" "title money && emacs -s money -- $LEDGER_FILE_PERSONAL" "title accounting && clear" | |
| } | |
| function pkgmgnt() { | |
| # "Send text" for profile is this: ${HOME}/.config/tmux-xpanes/schemes.bash pkgmgnt | |
| title Package management | |
| xpanes -t -d -l t -c "{}" "title gems; gem list" \ | |
| "title macports; port outdated" \ | |
| "title yarn global; yarn global upgrade-interactive" | |
| } | |
| function web::server() { | |
| # "Send text" for profile is this: ${HOME}/.config/tmux-xpanes/schemes.bash web::server | |
| title http-byob | |
| cd "${HOME}/Documents/apache2" | |
| xpanes -t -d -l eh -c "{}" "title serving; sbin/http-byob start" \ | |
| "title listening; sbin/http-byob listen" | |
| } | |
| function web::pax () { | |
| # "Send text" for profile is this: ${HOME}/.config/tmux-xpanes/schemes.bash web::pax | |
| title FuseBox | |
| cd "${HOME}/Documents/apache2/www/clients/me/paxperscientiam.com/source" | |
| xpanes -t -d -l eh -c "{}" \ | |
| "title compiler && node fuse.js" \ | |
| "title paxperscientiam.com && emacs ." | |
| } | |
| "${@}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment