tmux new -s [session name]
tmux ls
tmux a -t [name of session]
grep -inr --include=*.{html,js} "targettedCampaignBanner.js" . |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus", | |
"when": "!terminalFocus" | |
} |
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png | |
# A big thanks to \amethyst on Freenode | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 | |
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then | |
MAGENTA=$(tput setaf 9) | |
ORANGE=$(tput setaf 172) |
import React from 'react'; | |
export function Counter() { | |
const [currentCount, incrementCounter] = React.useState(0); | |
return ( | |
<div> | |
<h1>Counter</h1> |
final class SnappingSlider: UISlider { | |
override var value: Float { | |
set { super.value = newValue } | |
get { | |
return round(super.value * 1.0) / 1.0 | |
} | |
} | |
} |
#!/bin/bash | |
session="work" | |
if ( ps aux | grep tmux ) | |
then | |
echo tmux is running | |
tmux attach-session -t $session | |
else | |
echo tmux is not running |
# zsh compinit: insecure directories, run compaudit for list. | |
# Ignore insecure directories and continue [y] or abort compinit [n]? | |
$ sudo chmod -R 755 /usr/local/share/zsh | |
$ sudo chown -R root:staff /usr/local/share/zsh |