========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New new -s <session> -n <name> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & | |
========================================== Goto # ^b <0-9> | |
CONTROLS Next ^b n | |
========================================== Previous ^b p | |
Detach ^b d Choose ^b w <name> | |
List ^b = ========================================== | |
Buffer ^b <PgUpDn> PANE (SPLIT WINDOW) | |
Command ^b : <command> ========================================== | |
Copy ^b [ ... <space> ... <enter> Show # ^b q | |
Moving vim/emacs key bindings Split Horiz ^b " -------- | |
Start <space> Split Vert ^b % | | |
Copy <enter> Pane->Window ^b ! | |
Paste ^b ] Kill ^b x | |
========================================== Reorganize ^b <space> | |
SESSION (Set of Windows) Expand ^b <alt><arrow> | |
========================================== Resize ^b ^<arrow> | |
New ^b :new ^b :new -s <name> Resize x n ^b <n> <arrow> | |
Rename ^b $ Select ^b <arrow> | |
List ^b s Previous ^b { | |
Next ^b ( Next ^b } | |
Previous ^b ) Switch ^b o other | |
Swap ^b ^o | |
Last ^b ; |
Get-ChildItem "C:\" | ? { $_.PsIsContainer} | ft -AutoSize
Get-ChildItem "C:\" | % { write-host $_.BaseName}
$myObjs = @([PSCustomObject] @{Name="Jack"; Age="10";},
[PSCustomObject] @{Name="Tom"; Age="15";})
$myObjs | foreach-object{$counter = 0}{
Write-Host $counter - $_.Name is $_.Age years old.
$counter++
}
'This', 'Is', 'a', 'cat' | & {"$input"}
'This', 'Is', 'a', 'cat' | & {$ofs='-';"$input"}