As configured in my dotfiles.
start new:
tmux
start new with session name:
| # ~/.tmux.conf | |
| # | |
| # See the following files: | |
| # | |
| # /opt/local/share/doc/tmux/t-williams.conf | |
| # /opt/local/share/doc/tmux/screen-keys.conf | |
| # /opt/local/share/doc/tmux/vim-keys.conf | |
| # | |
| # URLs to read: | |
| # |
| ------------------------------------------------------------------------- | |
| USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
| Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
| Latest version of this file (in English) is usually at: | |
| http://sed.sourceforge.net/sed1line.txt | |
| http://www.pement.org/sed/sed1line.txt | |
| This file will also available in other languages: | |
| Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html |
| var message = 'Hello!'; | |
| (function() { | |
| var message = 'Hi!'; | |
| alert(message); | |
| })(); |
| ######################### | |
| # FUNCTIONS | |
| ######################### | |
| function parse_git_branch { | |
| [ -d .git ] || return 1 | |
| git_status="$(git status 2> /dev/null)" | |
| branch_pattern="^# On branch ([^${IFS}]*)" | |
| remote_pattern="# Your branch is (.*)" | |
| diverge_pattern="# Your branch and (.*) have diverged" | |
| if [[ ! ${git_status}} =~ "working directory clean" ]]; then |
| {% unless product_type %} | |
| <!-- Estamos en /collections/destacados. Listar tipos con link a /collections/destacados/types/un-tipo --> | |
| {% include 'collection_list_types' %} | |
| {% else %} | |
| <!-- Estamos en /collections/destacados/types/un-tipo. Listar productos para este tipo --> | |
| {% include 'collection_list_products' %} | |
| {% endunless %} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| Ext.Date.fuzzy = function(time, local){ | |
| (!local) && (local = Date.now()); | |
| if (typeof time !== 'number' || typeof local !== 'number') { | |
| return; | |
| } | |
| var | |
| offset = Math.abs((local - time)/1000), |