As configured in my dotfiles.
start new:
tmux
start new with session name:
/* | |
* An implementation of Ruby's string.succ method. | |
* By Devon Govett | |
* | |
* Returns the successor to str. The successor is calculated by incrementing characters starting | |
* from the rightmost alphanumeric (or the rightmost character if there are no alphanumerics) in the | |
* string. Incrementing a digit always results in another digit, and incrementing a letter results in | |
* another letter of the same case. | |
* | |
* If the increment generates a carry, the character to the left of it is incremented. This |
//Cross browser CSS3 mixins | |
@mixin box-shadow($left, $top, $radius, $color) { | |
box-shadow: $left $top $radius $color; | |
-webkit-box-shadow: $left $top $radius $color; | |
-moz-box-shadow: $left $top $radius $color; | |
} | |
@mixin transition($property, $duration, $easing: linear) { | |
transition: $property $duration $easing; |
As configured in my dotfiles.
start new:
tmux
start new with session name:
<?php | |
/** | |
* Add a filter to stylesheet_uri, which appends a query string to it automagically. | |
*/ | |
add_filter('stylesheet_uri', 'zk_css_versioner'); | |
/** | |
* the goal of this method is to append a query string to the css url for the site. | |
* the query string currently is determined by the last time the css file was modified |
#!/bin/bash | |
# | |
# PostgreSQL Backup Script Ver 1.0 | |
# http://autopgsqlbackup.frozenpc.net | |
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com> | |
# | |
# This script is based of the AutoMySQLBackup Script Ver 2.2 | |
# It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
# | |
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
" Name: KOS-MOS vim colorscheme | |
" Author: slowpoke <mail at slowpoke dot io> | |
" License: WTFPLv2 | |
" Version: 0.1 (Work in Progress) | |
" About: A colorscheme inspired by and in dedication to the lovely female | |
" android from the Xenosaga series. | |
" some boilerplate | |
set background=dark | |
highlight clear |
So I have been using tmux for a while and have grown to like it and have since added many many customizations to it. Now once you start getting the hang of it, you'll naturally want to do more with the tool.
Now tmux has a concept of window-group
and session
and if you are like me you'll want multiple session that connects to the same window group instead of a new window group every time. Basically I just need different views into the same set of windows that I have already created, I don't want to create a new set of windows every time I fire up my terminal.
This is the default case if you simply use the tmux
command as your login shell, effectively creating a new group of windows every time you start tmux
.
This is less than ideal because, if you are like me, you fire up one-off terminals all the time and you don't want all those one-off jobs to stay running in the background. Plus sometimes you need information fro
/* MIXINs */ | |
@mixin transition( $val : ease 0.5s ) { | |
-webkit-transition: $val; | |
-moz-transition:$val; | |
-o-transition:$val; | |
-ms-transition:$val; | |
transition:$val; | |
} | |
@mixin text-shadow( $top: 3px, $left: 3px, $blur: 3px , $colour: #333 ) { |