start new:
tmux
start new with session name:
tmux new -s myname
| ` # \ | |
| # PowerShell Param statement : every line must end in #\ except the last line must with <#\ | |
| # And, you can't use backticks in this section #\ | |
| param( [ValidateSet('A','B')]$tabCompletionWorksHere, #\ | |
| [switch]$andHere #\ | |
| ) <#\ | |
| #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ` | |
| #vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | |
| # Bash Start ------------------------------------------------------------ |
| #!/usr/bin/env bash | |
| set -e | |
| cweb_version=0.6.16 | |
| cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz | |
| curl -Lo cargo-web.gz $cweb | |
| gunzip cargo-web.gz | |
| chmod u+x cargo-web |
| #!/bin/bash | |
| pidlist() { | |
| local thispid=$1 | |
| local fulllist= | |
| local childlist= | |
| childlist=$(ps --ppid $thispid -o pid h) | |
| for pid in $childlist | |
| do | |
| fulllist="$(pidlist $pid) $fulllist" | |
| done |
| # First, we need to find our device. BEFORE inserting your USB drive, run the | |
| # following: | |
| diskutil list | |
| # This will output a bunch of info about all of the disk drives connected to | |
| # your Mac. Each entry will have a header in the form "/dev/diskX", where X is | |
| # some number starting at 0. Now, insert your USB drive and run the command | |
| # again. You should see a new entry. Make note of the name (ie, /dev/diskX). | |
| diskutil list |