(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
find /System/Library/Frameworks/JavaScriptCore.framework -iname jsc |
# 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 |
#!/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 |
final class SnappingSlider: UISlider { | |
override var value: Float { | |
set { super.value = newValue } | |
get { | |
return round(super.value * 1.0) / 1.0 | |
} | |
} | |
} |
import React from 'react'; | |
export function Counter() { | |
const [currentCount, incrementCounter] = React.useState(0); | |
return ( | |
<div> | |
<h1>Counter</h1> |
# 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) |